Bernd Oppolzer wrote:
I'd like to sum it up for those who don't know C on z/OS:
to read a member of a partioned data set, you have at least the following
possibilities:
a) specify the full name (DSN + member) in apostrophes on the fopen
function call
b) without apostrophs, then the TSO prefix or RACF id is added
c) DD:DDNAME + member name on fopen, DSNAME on DD statement
d) DD:DDNAME on fopen, DSNAME + membername on DD statement
maybe more, which I'm not aware of at the moment.
Furthermore, it's easy to read the directory of the PDS using normal
binary file I/O - this way you can read the member names and - for
example -
fopen all the members in a PDS one by one - much the same way as
the ISPF library services do it.
Kind regards
Bernd
Note that this discussion is for XL C/C++ (LE) on z/OS.
The Dignus runtimes don't do this "magic". We take the approach of "you
get what you say."
So. if you want the userid on the file name, you have to put it in there
yourself.
- Dave Rivers -
--
riv...@dignus.com Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN