I need to collate 2 files - one containing a date field of 8 bytes length and another containing a counter field, again of 8 bytes length. I am trying to create an output file with the date field, a '-' and the corresponding counter value. I just have 5 records in both the files.
I just keep getting an RC of 16 with the reason that the outfile LRECL is incompatible. I have created all the files with an LRECL of 25.
Can anyone please tell me where I am missing out?
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
Just a couple of points, as during a quieter moment I had a little play. The amended code below gives the required result for your question.
1) You do not specify any RECFM in your JCL, and also use AVGREC when you have fully defined the space requirement already using TRKS or CYLS, so the AVGREC parameter is ignored.
2) For your OUT DD the BLKSIZE is not an integer multiple of the LRECL, and RECFM=VB was not specified.
3) Your control statements place the SEQNUM in different positions.
SPLICE FROM(TEMP1) TO(OUT) ON(10,8,PD) WITH(10,8) USING(CTL3)
SYT020I SYNCSORT CALLED WITH IDENTIFIER "0003"
SYT012E SYNCSORT COMPLETED UNSUCCESSFULLY
SYT030I OPERATION COMPLETED WITH RETURN CODE 16
SYT015I PROCESSING MODE CHANGED FROM "STOP" TO "SCAN" DUE TO OPERATION FAILURE
SYT004I SYNCTOOL PROCESSING COMPLETED WITH RETURN CODE 16
And I see these messages in the DFSMSG:
WER146B 12K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I FILEA : RECFM=FB ; LRECL= 25; BLKSIZE= 27975
WER237I OUTREC RECORD LENGTH = 17
WER110I TEMP1 : RECFM=FB ; LRECL= 25; BLKSIZE= 27975
WER462I OUTPUT LRECL DIFFERS FROM SORTOUT LRECL
WER108I TEMP1 : RECFM=FB ; LRECL= 25; BLKSIZE= 27975
WER197A OUT RECFM=F/FB, LRECL/BLKSIZE INVALID
WER110I OUT : RECFM=FB ; LRECL= 17; BLKSIZE= 27975
WER247A OUT HAS INCOMPATIBLE LRECL
WER425A CONVERT FEATURE CANNOT BE USED WITH OVERLAY OR IFTHEN