I ran a SPUFI and it gave me a dataset with attributes: LRECL=4000, BLKSIZE=4004. I am using this dataset as input to a simple SORT as given below:
//STEP01 EXEC PGM=SORT
//SORTIN DD DSN=PIKAS.MACHAS.TEST08.OUT1,DISP=SHR
//SORTOUT DD DSN=PIKAS.MACHAS.TEST08.OUTO,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(370,7,CH,EQ,C'1032903')
/*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=PIKAS.MACHAS.TEST08.OUT1,DISP=SHR
//SORTOUT DD DSN=PIKAS.MACHAS.TEST08.OUTO,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(370,7,CH,EQ,C'1032903')
/*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
Input:
----7----+----8-
----------------
----------------
1032903
----------------
----------------
----------------
----------------
----------------
1032903
1032903
1032903
----------------
1032903
----------------
----------------
1032903
----------------
----------------
----------------
----------------
----------------
1032903
1032903
1032903
----------------
1032903
This job is failing with the below information in SYSOUT:
SYSIN :
SORT FIELDS=COPY
INCLUDE COND=(370,7,CH,EQ,C'1032903')
WER276B SYSDIAG= 22404, 917422, 917422, 1248421
WER164B 6,904K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,035,872 BYTES USED
WER146B 12K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=VB ; LRECL= 4000; BLKSIZE= 4004
WER110I SORTOUT : RECFM=VB ; LRECL= 4000; BLKSIZE= 4004
WER055I INSERT 0, DELETE 1
WER250A INCLUDE/OMIT FIELD BEYOND RECORD
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
SORT FIELDS=COPY
INCLUDE COND=(370,7,CH,EQ,C'1032903')
WER276B SYSDIAG= 22404, 917422, 917422, 1248421
WER164B 6,904K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,035,872 BYTES USED
WER146B 12K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=VB ; LRECL= 4000; BLKSIZE= 4004
WER110I SORTOUT : RECFM=VB ; LRECL= 4000; BLKSIZE= 4004
WER055I INSERT 0, DELETE 1
WER250A INCLUDE/OMIT FIELD BEYOND RECORD
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Would you please tell me why the job has to abend with "INCLUDE/OMIT FIELD BEYOND RECORD"? Though the field starts at 366th column in put file, I am using 370 as starting position because the input is VB file.
Please help.
Thanks.