Following up on the suggestion regarding regular expressions; one approach
would be to:
1) use IGGCSI00 for each "include" pattern
2) use "grep -v" with -e for each "exclude" pattern, using concatentated
output from (1).
Our free Co:Z Toolkit includes a z/OS Unix "catsearch" command that wraps
IGGCSI00, so you could do this:
// EXEC PGM=COZBATCH <-- better BPXBATCH
//STDIN DD *
{
catsearch xxx.*.zzz.** ; # include pattern
catsearch yyy.*.bbb.** ; # second include pattern
catsearch zzz.ddd.** ; # third include pattern
} | grep -x -v -i \
-e aaa\..*\.bbb\..* # exclude "aaa.**.bbb.**" \
-e bbb\..*\.ccc\..* # exclude "bbb.**.ccc.**"
/*
Note: if you wanted to exclude "aaa.*.bbb.**" (a single nested level
between aaa and bbb), it would be a little more complicated regular
expression.
Something like:
-e aaa\.[:alnum:@#\$]+\.bbb\..*
It might be useful to have a command that converts "dsname" patterns to
regular expressions.
Kirk Wolf
Dovetailed Technologies
http://dovetail.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN