View previous topic :: View next topic
|
Author |
Message |
nivethitha_kumar
New User
Joined: 24 Jan 2007 Posts: 11 Location: chennai
|
|
|
|
can i use AND or OR in include to have two conditions
e.g
Code: |
OUTFIL FNAMES=OUT01,INCLUDE=(12,2,CH,EQ,C'12',AND,12,2,CH,EQ,C'11'),BUILD=(1,10)
|
What if i want the two conditions to be satisfied or one of them to write in to the file. i dont want to use too many temp files. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
You can use multple ANDs and ORs. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
nivethitha_kumar wrote: |
COND=(12,2,CH,EQ,C'11',AND,12,2,CH,EQ,C'22') |
How can 12,2 = C'11" and at the same time = C'22'? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
It should at least be
Code: |
OUTFIL FNAMES=OUT02,
INCLUDE=(12,2,CH,EQ,C'11',OR,12,2,CH,EQ,C'22'),BUILD=(1,10)
|
|
|
Back to top |
|
|
nivethitha_kumar
New User
Joined: 24 Jan 2007 Posts: 11 Location: chennai
|
|
|
|
oops i am sorry abt tht... but i was getting a syntax error on COND...The prev syntax by superk worked though... thanks |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
To clear things up as to syntax:
COND is used with the INCLUDE or OMIT statement, e.g.
INCLUDE or OMIT are used with the OUTFIL statement:
Code: |
OUTFIL INCLUDE=(...)
|
|
|
Back to top |
|
|
|