Hi,
Your file should be defined in the F spec. Why are you defining it in the I spec?
Regards,
Martin Gilbert.
Declare the file in F specs as externally defined
D Specs or I Specs can be used to map an array over the fields in the physical file
D testds ds
D SlsArray 10S 2 Dim(12)
D JanSales 1 10S 2
D FebSales 11 20S 2
D …
D DecSales 111 120S 2
When you read a record that contains the fields JanSales…DecSales the values will be available in the array fields SlsArray(x) and if you change the values in the SlsArray and update or write the record those values will be in the file in the fields JanSales … DecSales
PhilL
Discuss This Question: 2  Replies