I am using the follwing sort card for joining two files and populate 'N' for a variable if the record is only present in F1,and 'Y' for the variabel if it is present in both.But i want only the first file content(1.e 1365 bytes)
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
Quote:
WER247A SORTOUT HAS INCOMPATIBLE LRECL
SyncSort for z/OS 1.3 Programmer’s Guide wrote:
A (action) message indicates a critical error condition: SyncSort terminates in order to allow the user to correct the error(s) so that a successful sort/merge may be run.
I agree the output LRECL is incompatible as all of you mentioned also my requirement is only first 1365 bytes.But my question is why BUILD or OVERLAY is not working to get only first 1365 bytes length.
Please find my codes below.
1)Using BUILD,it is not working to take only first 1365 of total 1395 length of reformat fields
Code:
SYNCSORT FOR Z/OS 1.3.2.1R U.S. PATENTS: 4210961, 5117495 (C) 2007 SYNCSO
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 4A74D, MODEL 2094 606 LICEN
JOINKEYS FILES=F1,FIELDS=(1,9,A,10,1,A,11,2,A)
JOINKEYS FILES=F2,FIELDS=(1,9,A,10,1,A,11,2,A)
JOIN UNPAIRED,F1
REFORMAT FIELDS=(F1:1,1365,
F2:1,30),FILL=X'FF'
SORT FIELDS=COPY
OUTFIL IFTHEN=(WHEN=(1366,1,BI,NE,X'FF'),
BUILD=(1,589,590:C'Y',591,775)),
IFTHEN=(WHEN=(1366,1,BI,EQ,X'FF'),
BUILD=(1,589,590:C'N',591,775))
END
WER276B SYSDIAG= 40675, 659364, 659364, 1698075
WER164B 5,288K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 892K BYTES USED
WER146B 128K BYTES OF EMERGENCY SPACE ALLOCATED
WER481I JOINKEYS REFORMAT RECORD LENGTH= 1395, TYPE = F
WER110I SORTOUT : RECFM=FB ; LRECL= 1365; BLKSIZE= 27300
WER247A SORTOUT HAS INCOMPATIBLE LRECL
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
WER482I JNF1 STATISTICS
WER483B 2,372K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER483B 0 BYTES RESERVE REQUESTED, 892K BYTES USED
WER108I SORTJNF1 : RECFM=FB ; LRECL= 1365; BLKSIZE= 13650
WER482I JNF2 STATISTICS
WER483B 2,372K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER483B 0 BYTES RESERVE REQUESTED, 892K BYTES USED
WER108I SORTJNF2 : RECFM=FB ; LRECL= 30; BLKSIZE= 27990
2) Using Overlay also it is not working,Please find spool details below:
Code:
SYNCSORT FOR Z/OS 1.3.2.1R U.S. PATENTS: 4210961, 5117495 (C) 2007 SYNCSO
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 4A74D, MODEL 2094 606 LICEN