Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: RE: Sorting group data

$
0
0
Author: Bill Woodger
Subject: Reply to: Sorting group data
Posted: Mon Jan 23, 2017 2:46 pm (GMT 5.5)

You will need to use INREC with IFTHEN=(WHEN=GROUP with BEGIN=(logicalexpression), RECORDS=2, identify the first record and to PUSH the entire record to a temporary extension to the current record.

Then you need OUTFIL with IFTHEN=(WHEN=((logicalexpression) to identify the second record, and to BUILD with the slash-operator (/) so that you output the second record as the first, followed by the first as the second. You will also need OMIT= on the OUTFIL to get rid of the, by then, redundant first record.


Viewing all articles
Browse latest Browse all 8500

Trending Articles