Page 1 of 1

Difference between COND with 'OR' and 'AND'

PostPosted: Fri Jan 18, 2013 10:04 pm
by nikesh_rai
Hi,

Can someone please help me out to understand what is the actual difference between COND with 'OR' and 'AND' option

for example
//SYSIN    DD *                           
     SORT FIELDS=COPY                     
     INCLUDE COND=(1,80,CH,NE,C' '),AND,   
                   1,80,SS,NE,C'88 '))     
/*


and

//SYSIN    DD *                           
     SORT FIELDS=COPY                     
     INCLUDE COND=(1,80,CH,NE,C' '),OR,   
                   1,80,SS,NE,C'88 '))     
/*       


I tried to go through manuals but didn't get anything.

Re: Difference between COND with 'OR' and 'AND'

PostPosted: Fri Jan 18, 2013 10:16 pm
by Akatsukami
The same as between AND and OR in any formal context.

Re: Difference between COND with 'OR' and 'AND'

PostPosted: Fri Jan 18, 2013 10:31 pm
by BillyBoyo
One opening and three closing :-)

Why use INCLUDE and then have NE? Keep everything simple.

If simple, you'll (and anyone else will) understand better.

Re: Difference between COND with 'OR' and 'AND'

PostPosted: Fri Jan 18, 2013 10:32 pm
by steve-myers
In any event, this is a sort question, not a JCL question. Since the topic starter did not bother to tell us which sort product they are using, the moderators can't move this topic to the appropriate area.

Re: Difference between COND with 'OR' and 'AND'

PostPosted: Sat Jan 19, 2013 12:37 am
by dick scherrer
Hello,

If you want help, you need to post syntax that is correct and your question about it or the error(s) encountered. There is no difference between your samples as they will both not run.

You also need to post which sort product is being used. As mentioned, this NOT a jcl question.

Where did you find this code?