If it helps:
you can open a PDS or PDSE without a member name using fopen ()
in binary mode and read the directory. After having read the member names,
you can fopen the individual members, if you want.
Kind regards
Bernd
David Stephens schrieb:
There's no doubt that z/OS specific functions aren't documented that
well, but the Run-Time Library Reference is where it all is. Functions
are for both C and C++. It includes some z/OS specific functions like
__cabend (abend a process) and _malloc24 (getmain storage below the
line), but you have to really look for them.
As you've found, fopen() works for z/OS datasets, specifying a DD
using the //DD:ddname format, or a sequential filename using the
//'dataset.name' format. Works for VSAM too. There are also the VSAM
specific flocate() and fupdate() functions.
Unfortunately, I haven't found anything like FIND for searching
through PDSs. An option may be to write an assembler program with
FIND, the call this from your C++ program.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html