Multiple conditions on single INCLUDE

Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL
hariharan_bk
Posts: 73
Joined: Thu Mar 29, 2012 11:13 am
Skillset: COBOL JCL DB2 CICS
Referer: friend

Multiple conditions on single INCLUDE

Postby hariharan_bk » Wed Sep 10, 2014 6:20 pm

Hi All,

Need advise on howto use INCLUDE COND when multiple conditions are to be met.
I have verified many threads regarding this and have tried many combinations, yet i am stuck to get proper syntax. Please advise.

Code: Select all

//SYSIN DD *                                           
  SORT FIELDS=COPY                                     
  INCLUDE COND=(2,7,CH,EQ,C'IGD107I'                   
          ,AND,55,10,CH,EQ,C'ROLLED IN,'               
          ,AND,                                       
      (9,29,CH,EQ,C'BST7SYST.APB.MD.TRIGGER.FINAL',OR,
       9,29,CH,EQ,C'BST7SYST.APB.MD.CONFIRM.FINAL',OR,
       9,25,CH,EQ,C'BST7SYST.APB.MD.DATARDW.G'))       
/*                                                     


Following is the error details from spool

Code: Select all

SYSIN :                                                             
  SORT FIELDS=COPY                                                   
  INCLUDE COND=(2,7,CH,EQ,C'IGD107I',AND,55,10,CH,EQ,C'ROLLED IN,'   
                                                                  * 
               ,AND,                                                 
               *                                                     
      (9,29,CH,EQ,C'BST7SYST.APB.MD.TRIGGER.FINAL',OR,               
      *                                                             
       9,29,CH,EQ,C'BST7SYST.APB.MD.CONFIRM.FINAL',OR,               
       *                                                             
       9,25,CH,EQ,C'BST7SYST.APB.MD.DATARDW.G'))                     
       *                                                             
WER251A  INCLUDE/OMIT INVALID LOGICAL OPERATOR                       
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT                     
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT                     
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT                     
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT                     
Many Thanks,
Harry

BillyBoyo
Global moderator
Posts: 3805
Joined: Tue Jan 25, 2011 12:02 am
Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
Referer: Google

Re: Multiple conditions on single INCLUDE

Postby BillyBoyo » Wed Sep 10, 2014 6:55 pm

That output is not from those SORT cards.

You have

Code: Select all

,AND,


Which is not valid, and:

Code: Select all

  INCLUDE COND=(2,7,CH,EQ,C'IGD107I' 


and

Code: Select all

          ,AND,55,10,CH,EQ,C'ROLLED IN,' 


You need a trailing comma or colon for a simple continuation, and no leading comma or colon on the continued line.

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: Multiple conditions on single INCLUDE

Postby NicC » Thu Sep 11, 2014 1:01 am

Pray tell...why is his coded in the JCL part of the forum and not one of the sort forums? Moved.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic


  • Similar Topics
    Replies
    Views
    Last post