I used the synsort to write a matched and unmatched records to two different files.
JCL is
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//INA DD *
F2010-06-16125ESB46066361
F2010-06-16125ESB77777777
F2010-06-16125ESB12345678
F2010-06-16125ESB23456789
F2010-06-16125ESB98765432
//INB DD *
F2010-06-16125ESB46066361
F2010-06-16125ESB98765432
F2010-06-16125ESB55555555
F2010-06-16125ESB23456789
F2010-06-16125ESB66666666
F2010-06-16125ESB12345678
//MATCH DD SYSOUT=*
//UNMATCH DD SYSOUT=*
//SYSIN DD *
OPTION COPY
JOINKEYS F1=INA,FIELDS=(1,25,A)
JOINKEYS F2=INB,FIELDS=(1,25,A)
JOIN UNPAIRED
REFORMAT FIELDS=(?,F1:1,80,F2:1,80)
OUTFIL FNAMES=MATCH,INCLUDE=(1,1,CH,EQ,C'B'),BUILD=(1,80)
OUTFIL FNAMES=UNMATCH,SAVE,
IFTHEN=(WHEN=(1,1,ZD,EQ,1),BUILD=(02,80)),
IFTHEN=(WHEN=(1,1,ZD,EQ,2),BUILD=(82,80))
//*
//SYSOUT DD SYSOUT=*
//INA DD *
F2010-06-16125ESB46066361
F2010-06-16125ESB77777777
F2010-06-16125ESB12345678
F2010-06-16125ESB23456789
F2010-06-16125ESB98765432
//INB DD *
F2010-06-16125ESB46066361
F2010-06-16125ESB98765432
F2010-06-16125ESB55555555
F2010-06-16125ESB23456789
F2010-06-16125ESB66666666
F2010-06-16125ESB12345678
//MATCH DD SYSOUT=*
//UNMATCH DD SYSOUT=*
//SYSIN DD *
OPTION COPY
JOINKEYS F1=INA,FIELDS=(1,25,A)
JOINKEYS F2=INB,FIELDS=(1,25,A)
JOIN UNPAIRED
REFORMAT FIELDS=(?,F1:1,80,F2:1,80)
OUTFIL FNAMES=MATCH,INCLUDE=(1,1,CH,EQ,C'B'),BUILD=(1,80)
OUTFIL FNAMES=UNMATCH,SAVE,
IFTHEN=(WHEN=(1,1,ZD,EQ,1),BUILD=(02,80)),
IFTHEN=(WHEN=(1,1,ZD,EQ,2),BUILD=(82,80))
//*
when i am doing 'JJ'
E1 8 DSS20011E DD 'SORTIN' WAS NOT ALLOCATED.
E2 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'JOINKEYS'.
E3 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'JOINKEYS'.
E4 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'JOIN'.
E5 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'REFORMAT'.
E2 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'JOINKEYS'.
E3 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'JOINKEYS'.
E4 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'JOIN'.
E5 8 DSS11051E UNRECOGNIZED 'SORT' KEYWORD 'REFORMAT'.
When i ran the jcl,abended and below message got at SYSOUT.What it does mean?
1 SYNCSORT FOR Z/OS 1.3.2.1R U.S. PATENTS: 4210961, 5117495
ABCCOMPANY
SYNCSORT LICENSED FOR CPU SERIAL NUMBER A0E5F, MODEL 2094 507
SYSIN :
OPTION COPY
JOINKEYS F1=INA,FIELDS=(1,25,A)
*
JOINKEYS F2=INB,FIELDS=(1,25,A)
*
JOIN UNPAIRED
REFORMAT FIELDS=(?,F1:1,80,F2:1,80)
*
OUTFIL FNAMES=MATCH,INCLUDE=(1,1,CH,EQ,C'B'),BUILD=(1,80)
OUTFIL FNAMES=UNMATCH,SAVE,
IFTHEN=(WHEN=(1,1,ZD,EQ,1),BUILD=(02,80)),
IFTHEN=(WHEN=(1,1,ZD,EQ,2),BUILD=(82,80))
WER268A JOINKEYS STATEMENT: SYNTAX ERROR
WER268A JOINKEYS STATEMENT: SYNTAX ERROR
WER268A REFORMAT STATEMENT: SYNTAX ERROR
ABCCOMPANY
SYNCSORT LICENSED FOR CPU SERIAL NUMBER A0E5F, MODEL 2094 507
SYSIN :
OPTION COPY
JOINKEYS F1=INA,FIELDS=(1,25,A)
*
JOINKEYS F2=INB,FIELDS=(1,25,A)
*
JOIN UNPAIRED
REFORMAT FIELDS=(?,F1:1,80,F2:1,80)
*
OUTFIL FNAMES=MATCH,INCLUDE=(1,1,CH,EQ,C'B'),BUILD=(1,80)
OUTFIL FNAMES=UNMATCH,SAVE,
IFTHEN=(WHEN=(1,1,ZD,EQ,1),BUILD=(02,80)),
IFTHEN=(WHEN=(1,1,ZD,EQ,2),BUILD=(82,80))
WER268A JOINKEYS STATEMENT: SYNTAX ERROR
WER268A JOINKEYS STATEMENT: SYNTAX ERROR
WER268A REFORMAT STATEMENT: SYNTAX ERROR