Tutorial by Examples

IDENTIFICATION DIVISION. PROGRAM-ID. STRINGVAL. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 WORK-AREAS. 05 I-STRING PIC X(08) VALUE 'STRNGVAL'. 05 O-STRING PIC XBXBXBXBXBXBXBX. 88 O-STRING-IS-EMPTY VALU...
seemed the only way to add a comment. One thing that's easy to forget is that if you string some variables like the example above, and the resulting length is SHORTER than what was originally in the receiving variable (o- string above) then"trailing"characters are left in place. For exam...

Page 1 of 1