Can anyone please help on the below issue. Can we use occurs depending on in Redfine clause. Please find below the code.
01 VAR-0 PIC 9(2) VALUE 0.
01 STRUCT-0 PIC X(26).
01 STRUCT-1 REDEFINES STRUCT-0.
03 VAR-1 PIC X(2).
03 VAR-2 OCCURS 10 TIMES
DEPENDING ON VAR-0
PIC X(1).
03 VAR-3 PIC X(14).
01 STRUCT-0 PIC X(26).
01 STRUCT-1 REDEFINES STRUCT-0.
03 VAR-1 PIC X(2).
03 VAR-2 OCCURS 10 TIMES
DEPENDING ON VAR-0
PIC X(1).
03 VAR-3 PIC X(14).
Thanks....
Code'd