Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error in SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Error in SYNCSORT
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: 1738
Location: Bloomington, IL

PostPosted: Tue May 21, 2013 10:19 pm    Post subject:
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

Site Director


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

PostPosted: Tue May 21, 2013 10:26 pm    Post subject:
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    Post subject: Reply to: Error in SYNCSORT
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

Site Director


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

PostPosted: Tue May 21, 2013 11:40 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Tue May 21, 2013 11:52 pm    Post subject: Reply to: Error in SYNCSORT
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

Senior Member


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

PostPosted: Wed May 22, 2013 5:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 3 Fri Dec 02, 2016 9:47 am
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us