View previous topic :: :: View next topic
Author
Message
vicharapusrinu Warnings : 1 New User Joined: 04 Dec 2006Posts: 63 Location: Hyderabad
Hi,
Can some one help me out please.
I am getting below syntax error, Plz let me know correct syntax.
below is the error.
Code:
OUTREC IFTHEN=(WHEN=INIT,
BUILD=(1:5,5,PD,EDIT=(TTTTTTTTT),10:1X,
11:230,4,PD,EDIT=(TTTTTT),
17:234,9,26:5X,50:C'NN')),
IFTHEN=(WHEN=(1,9,ZD,EQ,000000000),OVERLAY=(50:C'ZE')),
IFTHEN=(WHEN=(1,9,ZD,NE,000000000),OVERLAY=(50:C'NZ')),VTOF
*
OPTION DYNALLOC
END
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
Back to top
Akatsukami Global Moderator Joined: 03 Oct 2009Posts: 1790 Location: Bloomington, IL
Perhaps because VTOF is an OUTFIL parameter, not an OUTREC one.
Back to top
dick scherrer Site Director Joined: 23 Nov 2006Posts: 19270 Location: Inside the Matrix
Hello,
Please do NOT post Syncsort questions in the DFSORT part of the forum.
Syncsort topics are handled in the JCL part of the forum.
Back to top
vicharapusrinu Warnings : 1 New User Joined: 04 Dec 2006Posts: 63 Location: Hyderabad
Thanks Akatsukami,
As you said I have changed OUTFIL from OUTREC, I have got below message
Code:
WER425A CONVERT FEATURE CANNOT BE USED WITH OVERLAY OR IFTHEN
Then I have removed ,VTOF, now I am getting ABEND S0C7
Can you please help me. Finally I have store output in FB file.
Back to top
dick scherrer Site Director Joined: 23 Nov 2006Posts: 19270 Location: Inside the Matrix
Hello,
When posting Sort Control that has a problem, it isw best to post all of the sort control, along with the execution JCL.
Why are the first positions sometimes packed-decimal and sometimes zoned-decimal?
Back to top
Bill Woodger DFSORT Moderator Joined: 09 Mar 2011Posts: 7314
Along with what is already requested, some sample input and expected output and a description of the process, please. You existing Control Cards are very confused.
Back to top
Anuj Dhawan Senior Member Joined: 22 Apr 2006Posts: 6258 Location: Mumbai, India
You cannot use IFTHEN clauses and VTOF in the same OUTFIL statement, as Sir Akatsukami has already indicated.
For your case - instead, you can use IFTHEN clauses in OUTREC statement, and OUTFIL with VTOF and BUILD:
Code:
.
.
OUTREC IFTHEN=,,,
OUTFIL VTOF,BUILD=(...)
Back to top
Please enable JavaScript!