kadamd1 Beginner
Joined: 18 Jun 2004 Posts: 2 Topics: 2
|
Posted: Wed Aug 11, 2004 9:06 am Post subject: Required Cobol equivalent of PL/1 code |
|
|
We have the following code in PL1.
What is the equivalent of the following definitions in COBOL?
01 P_COMPANY_CODE PIC '999B';
01 KEY,
05 COMPANY FIXED (3,0),
05 SUBSIDIARY FIXED (3,0);
01 KEY-CO BASED(ADDR(COMPANY)),
05 1ST-BYTE-COMPANY CHAR(01),
05 C0-4BITS BIT(4),
05 C0-SIGN BIT(4);
01 KEY-SUB BASED(ADDR(SUBSIDIARY)),
05 1ST-BYTE-SUB CHAR(01),
05 SUB-4BITS BIT(4),
05 SUB-SIGN BIT(4); |
|