Dynamic Array using ODO.
Posted: Mon Feb 24, 2014 2:11 pm
Hi,
Can we create a dynamic array and pass the ODO value using copybook?
I want to create a table, but the rows in the table can vary.
01 TEST-VARIABLE OCCURS 1 TO 100 TIMES DEPENDING ON MAX-VALUE.
1) Can I dynamically control the value of MAX-VALUE using copybook?
2) Can I override the MAX-VALUE to 10 and more than 100 for the COBOL table?
Please let me know how can we achieve above condition.
Can we create a dynamic array and pass the ODO value using copybook?
I want to create a table, but the rows in the table can vary.
01 TEST-VARIABLE OCCURS 1 TO 100 TIMES DEPENDING ON MAX-VALUE.
1) Can I dynamically control the value of MAX-VALUE using copybook?
2) Can I override the MAX-VALUE to 10 and more than 100 for the COBOL table?
Please let me know how can we achieve above condition.