I'm trying to write duplicate records into SORTXSUM dataset (FB) using below JCL, but its giving error with user abned U0016 and the error message is also shown below:
SYSIN :
SORT FIELDS=(1,80,CH,A)
OUTFIL FNAMES=SORTOUT,OUTREC=(1:5,7,8:20,14,22:59C' '),CONVERT
INCLUDE COND=(5,7,CH,EQ,C'A000010')
SUM FIELDS=NONE,XSUM
OUTFIL FNAMES=SORTXSUM,OUTREC=(1:5,7,8:20,14,22:59C' '),CONVERT
WER202A SORTXSUM RECFM INCOMPATIBLE
Could any of you please help me out to get the duplicates in SORTXSUM dataset and unique records in SORTOUT dataset. Output files are FB and Input file is VB.
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
Krishna, I cleaned up your original JCL to make it look at least somewhat right for a SORT job. Now, I don't have access to Syncsort manuals, but I'd think that first, you'd need to change your SORT statement so that you're not including the RDW of your VB dataset in the sort. It should probably be:
SORT FIELDS=(5,80,CH,A)
as far as SORTXSUM, maybe you should try letting the product determine what the output should look like, and see what it does.