Say, LINE1 to LINE4 and LINE5 to LINE8 constitute a particular Block of Record.
IF the 1st 3 characters = 'MPR', THEN select the entire block (LINE1 through LINE4).
On the other hand, IF the 1st 3 characters = 'MPS', THEN reject the entire Block (LINE5 through LINE8).
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
Hello,
Will all the blocks have only 4 records?
What SORT product do you have at your shop?
Does the input file actually have a blank line separating blocks between line4 and line5?
What are the LRECL & RECFM of the input and output datasets.?
Yeah, you are right. The Block structure would be fixed (say, 4 Records per block). DFSORT is what we use.
The input file does not have any blank line separating the blocks between LINE4 and LINE5. Actually, the Input File would have hundreds and thousands of such block of records and there would be absolutely no space separating each block of record.