Page 1 of 1

tolerating LRECL mismatch

PostPosted: Fri Sep 07, 2012 7:47 pm
by rroot
SYNSORT terminates with a user 016 abend on mismatch of SORTIN and SORTOUT lrecl:
WER108I SORTIN : RECFM=FB ; LRECL= 80; BLKSIZE= 6160
WER073I SORTIN : DSNAME=SYSOS.INFORMAT.POWEXCH.RUNLIB
WER237I OUTREC RECORD LENGTH = 1000
WER110I SORTOUT : RECFM=FB ; LRECL= 22; BLKSIZE= 27984
WER074I SORTOUT : DSNAME=SYS12249.T143435.RA000.ZSYSJOBS.LDKEYV.H01
WER247A SORTOUT HAS INCOMPATIBLE LRECL

DFSORT puts out warning message, populates the SORTOUT with the correct length record and terminates normally:
ICE171I 0 SORTOUT LRECL OF 22 IS DIFFERENT FROM SORTIN(NN) LRECL OF 80 - RC=0

How can I make SYNCSORT toleate this situation?

Re: tolerating LRECL mismatch

PostPosted: Fri Sep 07, 2012 8:11 pm
by Akatsukami
You can't; use INREC or OUTREC to create a 22-byte output record.

Re: tolerating LRECL mismatch

PostPosted: Fri Sep 07, 2012 8:31 pm
by dick scherrer
Hello and welcome to the forum,

This depends on whether you want 22 bytes in the output or 80. If 22 is the desired output lrecl, do as Akatsukami suggested.

Re: tolerating LRECL mismatch

PostPosted: Fri Sep 07, 2012 11:24 pm
by rroot
thanks for the quick responses. We do want 22, so will specify an OUTREC of 22.