>In C, if you do an fopen to the PDS or PDSE without a member name, >you can read the directory much like a normal file (fopen with "rb"). >Then you have the member names, and then you can fopen the >individual members and process them.
Thank you and thank you David for pointing to the documentation I have now a few questions: 1. Is PDSE the same (I mean same structure of directory and directory entry) in that regard? 2. Otherwise, where can I find documentation about PDSE in the sam econtext? 3. (Also otherwise) How would I distinguish between the two, either before or during opening the directory short of manually checking and communicating the fact to the C program? Unrelated to the above, the existing C codebase is designed for Unix and invoking it from the command line looks like this: PCREGREP [options] [somepattern] [filelist] On z/OS I have to use PARM='/[options] somepattern [filelist]' I am contemplating adding two mutually exclusive options -PDS and -PDSDD that would tell the program that the files are either PDS/E's or DD names that point to PDS/E's Assuming that HLQ is High Level Qualifier, MLQ is Middle Level qualifier and so on. my questions in that regard are: 4. if I do PARM='/-PDS pAtTeRn MLQ.LLQ' that would work fine (it works fine now for flat files), but how could I add the HLQ, because this requires enclosing the file name in quotes and remember, this is in C context? ZA ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN