INCLUDE and OMIT COND together



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

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 -

//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 :
 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
amitava
 
Posts: 5
Joined: Mon Jul 30, 2007 5:34 pm
Location: India
Has thanked: 0 time
Been thanked: 0 time

Re: INCLUDE and OMIT COND together

 

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:
 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' ')                     
          )
William Thompson
 
Posts: 86
Joined: Sat Jun 09, 2007 4:24 am
Location: Tucson AZ
Has thanked: 0 time
Been thanked: 1 time

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
amitava
 
Posts: 5
Joined: Mon Jul 30, 2007 5:34 pm
Location: India
Has thanked: 0 time
Been thanked: 0 time

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.
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post