Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1783
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: 7314

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 -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us