HI All,
Could some one help me on coding cobol equivalent "Occurs depending on" in a Easytrieve copybook.
The format is as mentioned below :
05 NUM-ACC PIC 9(02) VALUE ZEROES.
05 NUM-DEN-CODE PIC 9(02) VALUE ZEROES.
05 ACC-DIS OCCURS 1 TO 10 TIMES DEPENDING ON NUM-ACC
10 ACC-NARR PIC X(50) VALUE SPACES.
05 DEN-CODE OCCURS 1 TO 5 TIMES DEPENDING ON NUM-DEN-CODE
10 DEN-RSN-CD PIC X(02) VALUE SPACES.
Note : These are not the last fields in the copybook.
Thanks in advance