I have a file that a vendor wants sorted.

 

H 09/10/20071250COLOR

M top_right_message  

M top_right_message  

M top_right_message  

M top_right_message  

M top_right_message  

M top_right_message  

M top_right_message  

M top_right_message  

D 111111111detailsR07

I 11111111108/15/2007

...

S 333333333SCHED

D 333333333detai

I 33333333308/15

F 000000000007IN

 

Where 111111111, and 333333333 are account numbers, and column 1
indicates Header, Message, Detail, Invoice, Schedule, & Footer

 

The vendor wants the first record to be the Header, the next few to be
the Message, and the last to be the Footer.     But in between, he wants
the records for each account to be in Invoice, Detail, Schedule order.

 

Can I stick a DFSort on it?

 

Otherwise I would need to stack up account records in an array in the
CoBOL and write them out after processing an account.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to