IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error in SYNCSORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vicharapusrinu
Warnings : 1

New User


Joined: 04 Dec 2006
Posts: 63
Location: Hyderabad

PostPosted: Tue May 21, 2013 10:01 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue May 21, 2013 10:19 pm
Reply with quote

Perhaps because VTOF is an OUTFIL parameter, not an OUTREC one.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue May 21, 2013 10:26 pm
Reply with quote

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
View user's profile Send private message
vicharapusrinu
Warnings : 1

New User


Joined: 04 Dec 2006
Posts: 63
Location: Hyderabad

PostPosted: Tue May 21, 2013 10:43 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue May 21, 2013 11:40 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue May 21, 2013 11:52 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed May 22, 2013 5:57 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top