I am trying to run the above JCL and below error is occuring. Please help.
Code:
SYT001I INITIAL PROCESSING MODE IS "STOP"
SYT002I "TOOLIN" INTERFACE BEING USED
DATASORT FROM(IN1) TO(OUT1) HEADER(1) TRAILER(1) USING(CTL1)
SYT020I SYNCSORT CALLED WITH IDENTIFIER "0001"
SYNCSORT FOR Z/OS 1.3.2.1RI U.S. PATENTS: 4210961, 5117495 (C) 2007 SYNCSO
z/OS 1.11.0
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 50328, MODEL 2094 705 LICEN
CTL1CNTL :
SORT FIELDS=COPY
OUTREC FIELDS=(1,10,ZD,TO=BI,6X)
PARMLIST :
OPTION RESINV=0,ARESINV=0,MSGDDN=DFSMSG,SORTIN=IN1,SORTDD=CTL1,SORTOUT=OUT1,DYN
LLOC,CMP=CLC,NOVLSHRT,EQUALS
SORT FIELDS=COPY
MODS E15=(SYNC##15,4096,,N),E35=(SYNC##35,4096,,N)
WER428I CALLER-PROVIDED IDENTIFIER IS "0001"
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
******************************** BOTTOM OF DATA ********************************
********************************* TOP OF DATA **********************************
SYT000I SYNCTOOL RELEASE 1.6.2 - COPYRIGHT 2007 SYNCSORT INC.
SYT001I INITIAL PROCESSING MODE IS "STOP"
SYT002I "TOOLIN" INTERFACE BEING USED
DATASORT FROM(STIN01) TO(STOT01) HEADER(1) TRAILER(1) USING(SRT1)
SYT020I SYNCSORT CALLED WITH IDENTIFIER "0001"
******************************** BOTTOM OF DATA ********************************
and see DFSMSG below
Code:
********************************* TOP OF DATA **********************************
SYNCSORT FOR Z/OS 1.3.2.1RI U.S. PATENTS: 4210961, 5117495 (C) 2007 SYNCSO
z/OS 1.11.0
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 50328, MODEL 2094 705 LICEN
SRT1CNTL :
SORT FIELDS=(1,10,CH,A)
OUTREC FIELDS=(1,10,ZD,TO=BI,LENGTH=4,6X)
PARMLIST :
OPTION RESINV=0,ARESINV=0,MSGDDN=DFSMSG,SORTIN=STIN01,SORTDD=SRT1,SORTOUT=STOT0
,DYNALLOC,CMP=CLC,NOVLSHRT,EQUALS
SORT FIELDS=COPY
MODS E15=(SYNC##15,4096,,N),E35=(SYNC##35,4096,,N)
WER428I CALLER-PROVIDED IDENTIFIER IS "0001"
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
******************************** BOTTOM OF DATA ********************************
this is the complete messages which we are getting in spool.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
sant532,
I just ran a test here to get the same results. But I wonder why there is no ERROR code/message issued by Syncsort though the step ends abnormally. May be Syncsort should look into this.
xxxxCNTL in a DATASORT application should NOT contain an OUTREC statement. However you can process the records after the DATASORT processing using an OUTFIL pass. Also it is mandatory to have a SORT FIELDS=(p,l,...) and not a SORT FIELDS=COPY since it is a SORT application.
Inorder to achieve what you're trying you can use an INREC pass instead as shown below so that the header and trailer records are not affected by the numeric conversion.
in above i have mention as HEADER(1) but i am not sure how many header reacords will come in live file but i am sure data reacords(not header and trailer) will start with 'RD'
So, in the output file, I should get the header(s) and trailer as it is and the remaining data should convert to binary.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Again the change in requirement. Is it such a difficult task to show the complete requirement in your initial post itself.
As per the initial requirement pos 1-10 had ZD data. But the latest post says data records start with 'RD'. Why dont you start over again and tell us your complete requirement with starting position, length and format of relevant fields in your actual input.