I have a question regarding variable length files. I am converting a master file into 3 seperate files to use in DB2. The master file is a variable length file. The fixed length section contains customer information. Each customer can have multiple orders, depending on the number specified in the customer section of the fill:
05 NUM-ORDER PIC 99
05 ORDER-HEADER OCCURS 0 TO 99 TIMES DEPENDING ON NUM-ORDER
The problem I am having is that each order can have 0 to 25 detail lines. This would be a depending on clause, but what would the syntax look like? The field it depends on is part of the order data:
05 NUM-ORDER PIC 99
05 ORDER-HEADER OCCURS 0 TO 99 TIMES DEPENDING ON NUM-ORDER
10 ORDER-HEADER-DATA
10 ORDER-HEADER-NUM-DETAIL
10 ORDER-HEADER-DETAIL OCCURS 0 TO 25 TIMES DEPENDING ON
ORDER-HEADER-NUM-DETAIL????????
How do I declare an array inside of an array like this?
An help would be more than appreciated.
05 NUM-ORDER PIC 99
05 ORDER-HEADER OCCURS 0 TO 99 TIMES DEPENDING ON NUM-ORDER
The problem I am having is that each order can have 0 to 25 detail lines. This would be a depending on clause, but what would the syntax look like? The field it depends on is part of the order data:
05 NUM-ORDER PIC 99
05 ORDER-HEADER OCCURS 0 TO 99 TIMES DEPENDING ON NUM-ORDER
10 ORDER-HEADER-DATA
10 ORDER-HEADER-NUM-DETAIL
10 ORDER-HEADER-DETAIL OCCURS 0 TO 25 TIMES DEPENDING ON
ORDER-HEADER-NUM-DETAIL????????
How do I declare an array inside of an array like this?
An help would be more than appreciated.