View previous topic :: View next topic
Author
Message
PrabakarV New User Joined: 21 Dec 2007Posts: 88 Location: My Desk
I am getting the below error before the ? symbol. used SORT pgm.
Code:
PARMTBLE : BMSG,CORE=MAX
SYSIN :
JOINKEYS FILES=F1,FIELDS=(1,3,A)
JOINKEYS FILES=F2,FIELDS=(1,3,A)
JOIN UNPAIRED,F1,F2
REFORMAT FIELDS=(F1:1,20,F2:1,20,?)
*
OPTION COPY
OUTFIL FNAMES=F1ONLY,INCLUDE=(41,1,CH,EQ,C'1'),BUILD=(1,20)
OUTFIL FNAMES=F2ONLY,INCLUDE=(41,1,CH,EQ,C'2'),BUILD=(1,20)
OUTFIL FNAMES=BOTH,INCLUDE=(41,1,CH,EQ,C'B'),BUILD=(1,20)
WER161B ALTERNATE PARM USED
WER268A REFORMAT STATEMENT: SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
could you please tell me why i am reformat fields error?
Back to top
expat Global Moderator Joined: 14 Mar 2007Posts: 8797 Location: Welsh Wales
Please explain in detail what it is that you wish to achieve, with examples of input data and expected output.
Have you read the SYNCSORT manual to get the information of the syntax for the failed statement.
Back to top
PrabakarV New User Joined: 21 Dec 2007Posts: 88 Location: My Desk
I have two input files F1 and F2. have to compare it with a key then write non matched F1 only present records, non matched F2 only present records, matched records in three files.
below is the code i used.
Code:
//SORT1 EXEC PGM=SYNCSORT
//SORTJNF1 DD DSN=N******.UTIL.SORTINP1,DISP=SHR
//SORTJNF2 DD DSN=N******.UTIL.SORTINP2,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//F1ONLY DD SYSOUT=*
//F2ONLY DD SYSOUT=*
//BOTH DD SYSOUT=*
//*
//SYSIN DD *
JOINKEYS FILES=F1,FIELDS=(1,3,A)
JOINKEYS FILES=F2,FIELDS=(1,3,A)
JOIN UNPAIRED,F1,F2
REFORMAT FIELDS=(F1:1,20,F2:1,20,?)
OPTION COPY
OUTFIL FNAMES=F1ONLY,INCLUDE=(41,1,CH,EQ,C'1'),BUILD=(1,20)
OUTFIL FNAMES=F2ONLY,INCLUDE=(41,1,CH,EQ,C'2'),BUILD=(1,20)
OUTFIL FNAMES=BOTH,INCLUDE=(41,1,CH,EQ,C'B'),BUILD=(1,20)
/*
Back to top
superk Global Moderator Joined: 26 Apr 2004Posts: 4652 Location: Raleigh, NC, USA
Code:
WER268A REFORMAT STATEMENT: SYNTAX ERROR
Please look up that error message and post here what it says.
Back to top
PrabakarV New User Joined: 21 Dec 2007Posts: 88 Location: My Desk
Thanks for pointing Kevin. I did look at the error before thinking of asking help.
Back to top
superk Global Moderator Joined: 26 Apr 2004Posts: 4652 Location: Raleigh, NC, USA
Let's let Alissa (from Syncsort) review your code and hopefully provide you with the correct syntax.
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
AFAIK, SyncSort does not support "?" as an indicator,
Code:
REFORMAT FIELDS=(F1:1,20,F2:1,20,?)
looks like you picked up an example working for DFSort and used at a shop having SyncSort.
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
Try this:
Code:
//SYSIN DD *
JOINKEYS FILES=F1,FIELDS=(1,3,A)
JOINKEYS FILES=F2,FIELDS=(1,3,A)
JOIN UNPAIRED
REFORMAT FIELDS=(F1:1,20,F2:1,20),FILL=X'FF'
OPTION COPY
OUTFIL FNAMES=F1ONLY,INCLUDE=(41,1,BI,EQ,X'FF'),BUILD=(1,20)
OUTFIL FNAMES=F2ONLY,INCLUDE=(41,1,BI,EQ,X'FF'),BUILD=(1,20)
OUTFIL FNAMES=BOTH,SAVE,BUILD=(1,20)
/*
Back to top
Please enable JavaScript!