Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
achu,
You can only have one INCLUDE statement, but you can also have an OUTFIL statement with an INCLUDE operand:
Code:
INCLUDE COND=(1,2,CH,EQ,C'SA')
SORT FIELDS=(1,10,CH,A)
SUM FIELDS=NONE
OUTFIL INCLUDE=(13,2,CH,EQ,C'AB')
However, note that the INCLUDE statement removes records before SORT and SUM whereas the OUTFIL statement removes records after SORT and SUM. So this might or might not do what you want. And as mentioned by others, an INCLUDE statement with AND or OR might do what you want.
If that doesn't help, then tell us what you're trying to do and show an example of your input records and what you want for output.