Tips to writing out extended subfile records conditionally
Posted on 2009-04-03
I have written many subfile RPG programs. I have a need for a program to one of the following: (1) write out an extended sub file record (record 1,2,3 my be extended - taking up 2 lines each, record 4,5,6 may not be extended - taking up 1 line each.
(2) write out the sub file, then be able to overlay one of the subfile records with a different layout. (While writing out the subfile, I will know that I need an extra line, so I will write a blank subfile record, then do I will go back and overwrite the subfile record.
(3) be able to write different record formats in the same subfile:
The subfile would look like the following:
Customer Item Date
ABC Cust Wedge1 5/15/09
Forcast of 30
CDE Cust Wedge2 5/30/09
Forecast of 50
FGH Cust Wedge3 5/30/09
Forecast of 25
AAA Cust Wedge4 5/30/09
BVB Cust Wedge5 5/30/09