INCLUDE and OMIT COND together

Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL
amitava
Posts: 5
Joined: Mon Jul 30, 2007 5:34 pm
Location: India

INCLUDE and OMIT COND together

Postby amitava » Thu Aug 02, 2007 5:00 pm

Hi,
In my JCL, I want to sort my input file in some specified condition and also include and omit some conditions. My SYSIN card looks like -

Code: Select all

//SYSIN    DD    *                                                     
 SORT FIELDS=COPY                                                     
 INCLUDE COND=(56,4,CH,EQ,C'BDS1')                                     
 OMIT COND=(1,4,CH,EQ,C'USER',OR,1,7,CH,EQ,C'SYSPGRP',OR,             
            1,13,CH,EQ,C'MHP051/MHR038',OR,1,13,CH,EQ,C'SUBSCRIBER ID',
            OR,1,15,CH,EQ,C' ',OR,42,8,CH,NE,C' ')                     
/*                                                                     


But I am getting the following error -

SYSIN :

Code: Select all

 SORT FIELDS=COPY                                                     
 INCLUDE COND=(56,4,CH,EQ,C'BDS1')                                     
 OMIT COND=(1,4,CH,EQ,C'USER',OR,1,7,CH,EQ,C'SYSPGRP',OR,             
 *                                                                     
            1,13,CH,EQ,C'MHP051/MHR038',OR,1,13,CH,EQ,C'SUBSCRIBER ID',
            OR,1,15,CH,EQ,C' ',OR,42,8,CH,NE,C' ')                     
WER269A  INCLUDE STATEMENT : DUPLICATE STATEMENT FOUND                 
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                         


Please tell me what to do? I don;t want to incorporate two steps to do the same. I want to do it in one step and if yes, then how?
Regards,

Amitava

William Thompson
Posts: 81
Joined: Sat Jun 09, 2007 4:24 am
Skillset: Some?
Referer: mcmillan
Location: Tucson AZ

Re: INCLUDE n OMIT COND together

Postby William Thompson » Thu Aug 02, 2007 5:09 pm

Wouldn't you define an include equal to be the same as an omit not equal?
Something like:

Code: Select all

 OMIT COND=(56,4,CH,NE,C'BDS1', AND
            (1,4,CH,EQ,C'USER',OR,1,7,CH,EQ,C'SYSPGRP',OR,             
            1,13,CH,EQ,C'MHP051/MHR038',OR,1,13,CH,EQ,C'SUBSCRIBER ID',
            OR,1,15,CH,EQ,C' ',OR,42,8,CH,NE,C' ')                     
          )

amitava
Posts: 5
Joined: Mon Jul 30, 2007 5:34 pm
Location: India

Re: INCLUDE n OMIT COND together

Postby amitava » Thu Aug 02, 2007 5:15 pm

So William,
Thats mean we ca not use INCLUDE and OMIT COND together in a SORT step? I am asking!
Regards,

Amitava

CICS Guy
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am

Re: INCLUDE n OMIT COND together

Postby CICS Guy » Thu Aug 02, 2007 5:27 pm

amitava wrote:Thats mean we ca not use INCLUDE and OMIT COND together in a SORT step?
A first hint was:
WER269A INCLUDE STATEMENT : DUPLICATE STATEMENT FOUND
and a quick trip to the manual summed it up:
Only one INCLUDE/OMIT control statement can be specified for an application, either as an INCLUDE or as an OMIT control statement.


  • Similar Topics
    Replies
    Views
    Last post