Please advise if MF SORT can do this:
Sort a PS file and then add separators between different blocks sorted. For example, the original file looks like:
I want the results look like (sorted by first 4 characters):
Code:
AAAA...........
AAAA...........
------------------- <- a separator line
BBBB...........
BBBB...........
------------------- <- a separator line
CCCC...........
Thanks for your help. I tried your control statements, and it works for the example I posted here.
Actually, the field I sorted is nearly 4000 bytes (3954 bytes exactly, the file LRECL is 4000, FB), and I need to add separator lines according to that 3954-byte-long field. I tried 'SECTIONS=(46,3954,TRAILER3=(4000C'-')) ', but it seems that did not work.
Code:
SORT FIELDS=(46,3954,CH,A)
OUTFIL REMOVECC,
SECTIONS=(46,3954,TRAILER3=(4000C'-'))
$
ICE223A F REPORT FIELD ERROR
ICE052I 3 END OF DFSORT
Please advise if there's a length limitation of the 'SECTIONS=' control statement.