We are using SYNCSORT FOR Z/OS 1.2.2.1R. I am running below given job to pull the generations from a GDG after listing them using the IDCAMS. I am using SORT with include condition but it fails.........
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD DSN=&TEMP1,
// DISP=(NEW,PASS,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENT('XXXXX.XXXXT.XXXD.XXXXXM.XXXS')
/*
//*
//STEP02 EXEC PGM=SORT
//SORTIN DD DSN=&TEMP1,
// DISP=(OLD,DELETE,DELETE)
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(5,7,CH,EQ,C'NONVSAM')
/*
//*
//SYSPRINT DD DSN=&TEMP1,
// DISP=(NEW,PASS,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENT('XXXXX.XXXXT.XXXD.XXXXXM.XXXS')
/*
//*
//STEP02 EXEC PGM=SORT
//SORTIN DD DSN=&TEMP1,
// DISP=(OLD,DELETE,DELETE)
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(5,7,CH,EQ,C'NONVSAM')
/*
//*
After running the above job it fails with the below error:
SYSIN :
SORT FIELDS=COPY
INCLUDE COND=(5,7,CH,EQ,C'NONVSAM')
WER276B SYSDIAG= 155729, 786256, 786256, 1196340
WER164B 6,904K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,012,824 BYTES USED
WER146B 12K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=VBA ; LRECL= 125; BLKSIZE= 27998
WER110I SORTOUT : RECFM=VBA ; LRECL= 125; BLKSIZE= 27998
WER055I INSERT 0, DELETE 1
WER250A INCLUDE/OMIT FIELD BEYOND RECORD
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
SORT FIELDS=COPY
INCLUDE COND=(5,7,CH,EQ,C'NONVSAM')
WER276B SYSDIAG= 155729, 786256, 786256, 1196340
WER164B 6,904K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,012,824 BYTES USED
WER146B 12K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=VBA ; LRECL= 125; BLKSIZE= 27998
WER110I SORTOUT : RECFM=VBA ; LRECL= 125; BLKSIZE= 27998
WER055I INSERT 0, DELETE 1
WER250A INCLUDE/OMIT FIELD BEYOND RECORD
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
I have really NOT understood few things here.....I don't know why it shows 125 as LRECL for SORTIN, whereas I used 80 in STEP01. Also, it shows VBA as Record Format whereas it should have been FB.
Please help.
Thanks.