Re: How to split a file into two file and remove dups?
Posted: Fri Oct 26, 2012 11:43 pm
On your OUTREC you are specifying 9 bytes, you are ending your records with a blank.
I don't know why you'd have 11 byte records, unless perhaps you have an LRECL specified on the DD statement for OUT.
You don't need to specify the "columns", the numbers prior to the ":". All your data follows on from the previous. Putting the columns makes it harder to change later.
Personally, I change OUTREC to BUILD. BUILD exists for INREC, OUTREC and OUTFIL. OUTREC and BUILD are identical.
Should get you an eight-byte record-length, unless you have the LRECL in the JCL. Leave off the whole DCB, Sort will provide it.
I don't know why you'd have 11 byte records, unless perhaps you have an LRECL specified on the DD statement for OUT.
You don't need to specify the "columns", the numbers prior to the ":". All your data follows on from the previous. Putting the columns makes it harder to change later.
Personally, I change OUTREC to BUILD. BUILD exists for INREC, OUTREC and OUTFIL. OUTREC and BUILD are identical.
BUILD=(1,2,
09,03,
09,03)
09,03,
09,03)
Should get you an eight-byte record-length, unless you have the LRECL in the JCL. Leave off the whole DCB, Sort will provide it.