Author: Bill Woodger
Subject: Reply to: Write R1 and R2 to OP1 and R1 to OP2
Posted: Mon Mar 06, 2017 3:44 pm (GMT 5.5)
Look at the SELECT operator in the chapter on ICETOOL, and see what that can do.
Then realise there is no "key" on each record, which leads to the USING and the control cards there: specifically the WHEN=GROUP.
You don't want the excess data on the output files, so the two OUTFIL statements drop of the data that was temporarily added to provide a key for SELECT.
Note the COPY operation - a SORT, the default for SELECT - would be a waste of resources, since the IDs are allocated in sequence (if to a large enough field, which I suspect it is).
Subject: Reply to: Write R1 and R2 to OP1 and R1 to OP2
Posted: Mon Mar 06, 2017 3:44 pm (GMT 5.5)
Look at the SELECT operator in the chapter on ICETOOL, and see what that can do.
Then realise there is no "key" on each record, which leads to the USING and the control cards there: specifically the WHEN=GROUP.
You don't want the excess data on the output files, so the two OUTFIL statements drop of the data that was temporarily added to provide a key for SELECT.
Note the COPY operation - a SORT, the default for SELECT - would be a waste of resources, since the IDs are allocated in sequence (if to a large enough field, which I suspect it is).