Based on responses that I've got from previous two discussions, I've decided to 
extend the existing PCREGREP [which is decidely written in C] and teach it to 
deal with PDS and PDSE libraries.  I need any bit of advice because I am not 
too proficient in C.

What I intend to do is recognize that the file name is of the format 
SOME.FILE.NAME(PATTERN) and designate that file as a PDS (this version of the 
pcregrep utility would live only in the z/OS port. so I am not concerned about 
other platforms having that as a valid file name.  BTW, pattern wildcard in 
that context is *, ?, whatever is accepted by fnmatch and valid member name 
letters only, not a regular expression.)

Any other file name would be considered  a flat file of sort.

I already know (conceptually) how to travel on a directory and get member names 
one after the other, and I know (conceptually) how to match the member names to 
the pattern and ignore aliases (or not.)

If I get a file name something like MLQ.LLQ(*) in the PARM= field, I should not 
have any issue processing that.

I asked, but I am asking again, with regard to the fact that we are talking 
about C, how would I pass quoted file names (i.e. with HLQ) in the PARM= field 
of the JCL and how would C be able to decipher that.

If the pds name is provided as a DDNAME it would be like this this dd:ddname.

ZA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to