Accept or override the default length (80 bytes) of the Commarea field and optionally redefine it into multiple fields. For main programs, do this in Working-Storage; for sub programs, do this in the Linkage Section.
SYM1 &TP-USER-LEN = 49
01 TP-COMMAREA. . . 05 TP-USERAREA PIC X(49).
SYM1 &TP-USER-LEN = 49 . . CA05 CA-REDEF. 10 CA-EMPLOYEE-NAME PIC X(20). 10 CA-EMPLOYEE-TITLE PIC X(20). 10 CA-EMPLOYEE-SSN PIC X(09).
01 TP-COMMAREA. . . . 01 CA-REDEF REDEFINES TP-COMMAREA. 05 FILLER PIC X(40). 05 TP-USERAREA PIC X(49). 05 CA-REDEF REDEFINES TP-USERAREA. 10 CA-EMPLOYEE-NAME PIC X(20). 10 CA-EMPLOYEE-TITLE PIC X(20). 10 CA-EMPLOYEE-SSN PIC X(09).
CADS PGM-USERAREA
The generated AMB source is identical to the source generated by the CA05 keyword in the example above.
SYM1 &TP-USER-LEN = 49 . . . CA PGM-USERAREA 10 CA-EMPLOYEE-NAME X20 10 CA-EMPLOYEE-TITLE X20 10 CA-EMPLOYEE-SSN X09
The generated AMB source is identical to the source generated by the CA05 keyword in the example above.
01 TP-COMMAREA. . . . 01 FILLER REDEFINES TP-COMMAREA. 05 TP-USERAREA PIC X(49). 05 PGM-USERAREA REDEFINES TP-USERAREA. 10 CA-EMPLOYEE-NAME PIC X(20). 10 CA-EMPLOYEE-TITLE PIC X(20). 10 CA-EMPLOYEE-SSN PIC X(09).
SYM1 &TP-USER-LEN = 49 . . . CA PGM-USERAREA 10 CA-EMPLOYEE-NAME X20 10 CA-EMPLOYEE-TITLE X20 10 CA-EMPLOYEE-SSN X09
The generated AMB source is identical to the source generated by the CA05 keyword in the example above.
CADS PGM-USERAREA