There is no reason why MFS literals cannot be in mixed case. Try it. You will be surprised at how much this small change improves a screen's readability. Your users will see it as a more "modern" look and will sing your praises.
Handling mixed case data is another story, but using mixed case MFS literals is a no-brainer. (You don't have to tell your users that part).
Showing posts with label IMS. Show all posts
Showing posts with label IMS. Show all posts
2011-01-15
2009-11-27
Uninitialized storage (1)
Assumptions about the state of uninitialized storage can bite the best of us. Last year we ran into a problem with the Cobol code generated by the SQL Coprocessor using Enterprise Cobol 3.3 under DB2 V8.
In the SQL---PLIST it was generating the following FILLER area:
02 SQL---STMT-NUM PIC S9(9) COMP-5.
02 FILLER PIC X(20).
Apparently the FILLER area is used by DB2 to store some bit switches and its logic assumes that initially the FILLER contains x'00'. *Usually* this is true, but we ran into some very weird application abends in a production IMS MPR.
It turned out that we were a bit behind in our Cobol maintenance. After the maintenance was applied the generated code changed to:
02 SQL---STMT-NUM PIC S9(9) COMP-5.
02 FILLER PIC X(20) VALUE IS
X'0000000000000000000000000000000000000000.
In my experience this is one of the very few times which a programmer's protest that "It's not my fault!" turned out to be true.
In the SQL---PLIST it was generating the following FILLER area:
02 SQL---STMT-NUM PIC S9(9) COMP-5.
02 FILLER PIC X(20).
Apparently the FILLER area is used by DB2 to store some bit switches and its logic assumes that initially the FILLER contains x'00'. *Usually* this is true, but we ran into some very weird application abends in a production IMS MPR.
It turned out that we were a bit behind in our Cobol maintenance. After the maintenance was applied the generated code changed to:
02 SQL---STMT-NUM PIC S9(9) COMP-5.
02 FILLER PIC X(20) VALUE IS
X'0000000000000000000000000000000000000000.
In my experience this is one of the very few times which a programmer's protest that "It's not my fault!" turned out to be true.
Subscribe to:
Posts (Atom)