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
 
Syncsort control card problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sudhamani

New User


Joined: 08 Nov 2007
Posts: 19
Location: india

PostPosted: Thu Jan 10, 2008 9:00 pm    Post subject: Syncsort control card problem
Reply with quote

Code:

//SYSIN DD *                                                   
  SORT FIELDS=(13,9,CH,A,7,4,CH,A)                             
  OUTFIL INCLUDE=(13,7,CH,EQ,C'3256005'),AND,                 
                         (1,6,CH,EQ,C'111607'),AND,             
                         (7,4,CH,GE,C'1025'),AND,               
                         (7,4,CH,LE,C'1040'),AND,               
                         (112,1,CH,EQ,C'2'),OR,                 
                         (112,1,CH,EQ,C'4'),OR,                 
                         (112,1,CH,EQ,C'6'),FNAMES=SORTOF1     
  OUTFIL INCLUDE=(13,7,CH,EQ,C'3256005'),AND,                 
                         (1,6,CH,EQ,C'111607'),AND,             
                         (7,4,CH,GE,C'1025'),AND,               
                         (7,4,CH,LE,C'1040'),AND,               
                         (112,1,CH,NE,C'2'),OR,                 
                         (112,1,CH,NE,C'4'),OR,                 
                         (112,1,CH,NE,C'6'),FNAMES=SORTOF2     


Can anyone correct this control card using iceman
giving OUTFIL STATEMENT : SYNTAX ERROR
Back to top
View user's profile Send private message

Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Jan 10, 2008 9:38 pm    Post subject:
Reply with quote

You have unbalanced parentheses.
Code:
//SYSIN DD *                                                   
  SORT FIELDS=(13,9,CH,A,7,4,CH,A)                             
  OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,                 
                         (1,6,CH,EQ,C'111607'),AND,             
                         (7,4,CH,GE,C'1025'),AND,               
                         (7,4,CH,LE,C'1040'),AND,               
                         (112,1,CH,EQ,C'2'),OR,                 
                         (112,1,CH,EQ,C'4'),OR,                 
                         (112,1,CH,EQ,C'6')),FNAMES=SORTOF1     
  OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,                 
                         (1,6,CH,EQ,C'111607'),AND,             
                         (7,4,CH,GE,C'1025'),AND,               
                         (7,4,CH,LE,C'1040'),AND,               
                         (112,1,CH,NE,C'2'),OR,                 
                         (112,1,CH,NE,C'4'),OR,                 
                         (112,1,CH,NE,C'6')),FNAMES=SORTOF2   
This corrects the syntax but will it do what you mean it to? You must determine that, as you did not tell us what you intended it to do.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jan 10, 2008 9:41 pm    Post subject:
Reply with quote

Douglas Wilder wrote:
You have unbalanced parentheses.
Code:
//SYSIN DD *                                                   
  SORT FIELDS=(13,9,CH,A,7,4,CH,A)                             
  OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,                 
                         (1,6,CH,EQ,C'111607'),AND,             
                         (7,4,CH,GE,C'1025'),AND,               
                         (7,4,CH,LE,C'1040'),AND,               
                         (112,1,CH,EQ,C'2'),OR,                 
                         (112,1,CH,EQ,C'4'),OR,                 
                         (112,1,CH,EQ,C'6')),FNAMES=SORTOF1     
  OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,                 
                         (1,6,CH,EQ,C'111607'),AND,             
                         (7,4,CH,GE,C'1025'),AND,               
                         (7,4,CH,LE,C'1040'),AND,               
                         (112,1,CH,NE,C'2'),OR,                 
                         (112,1,CH,NE,C'4'),OR,                 
                         (112,1,CH,NE,C'6')),FNAMES=SORTOF2   
This corrects the syntax but will it do what you mean it to? You must determine that, as you did not tell us what you intended it to do.


I don't think it will work properly with the mix of and's and or's with no parentheses to group them.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Jan 10, 2008 11:14 pm    Post subject:
Reply with quote

sudhamani
Explain the rules(INCLUDE conditions) that you are trying to code here. So that we could help you in building the SORT CARD.
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 Control-M restart instruction sonaliingle CA Products 2 Tue Nov 28, 2017 5:05 pm
No new posts Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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