I want to match a trailer record with the total no of data records in my file
Trailer recod looks like this:
TRAILER 20090401 1304760
I am trying this using a SORT step s below:
//PS000010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=myid.input,DISP=SHR
//OUT DD DSN=myid.AUD,
// DISP=(NEW,CATLG,DELETE),
// UNIT=(,30),
// SPACE=(TRK,(1,1)),
// DCB=(DSORG=PS,RECFM=FB,LRECL=38,BLKSIZE=38)
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,26,SEQNUM,12,ZD,START=0)
OUTFIL FNAMES=OUT,NULLOFL=RC4,
INCLUDE=(1,07,CH,EQ,C'TRAILER',AND,
(18,12,ZD,EQ,27,12,ZD))
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=myid.input,DISP=SHR
//OUT DD DSN=myid.AUD,
// DISP=(NEW,CATLG,DELETE),
// UNIT=(,30),
// SPACE=(TRK,(1,1)),
// DCB=(DSORG=PS,RECFM=FB,LRECL=38,BLKSIZE=38)
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,26,SEQNUM,12,ZD,START=0)
OUTFIL FNAMES=OUT,NULLOFL=RC4,
INCLUDE=(1,07,CH,EQ,C'TRAILER',AND,
(18,12,ZD,EQ,27,12,ZD))
I am getting MAXCC=0 but the output file is empty whcih is whay I am confused.
I also want to comapre the date in the trailer record with a DATE file.Can I accomplish this one step? Please help me with this?
Thanks,
Shilpa