Page 1 of 1

include=() and include=()

PostPosted: Wed Jun 10, 2009 10:06 am
by leon
hi, I have a logical oprator "and" 2 condition. get the error message:" include invalid logical operator.
does anybody can help me? thx
..........
sysin:
 //  sort fields=copy
       outfil fnames=sortout,
                include=(13,2,bi,eq,x'305e') and
                include=(569,1,zd,eq,1)
//*

Re: include=() and include=()

PostPosted: Wed Jun 10, 2009 9:08 pm
by Frank Yaeger
The correct DFSORT syntax is:

//SYSIN DD *                             
  SORT FIELDS=COPY                       
  OUTFIL FNAMES=SORTOUT,                 
    INCLUDE=(13,2,BI,EQ,X'305E',AND,     
    569,1,ZD,EQ,1)                       


If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

http://www.ibm.com/servers/storage/supp ... tmpub.html

Re: include=() and include=()

PostPosted: Thu Jun 11, 2009 7:58 am
by leon
works very well, thank you,Frank.