I'm working on some code written in C++ (with some assembler) that
does I/O to Unix files and z/OS datasets using the C library.
The C library supports writing PDS members, but it doesn't supporting
adding ISPF-style member statistics.

I'm looking for suggestions on how to create statistics for a member
that I add or update.  Of course, I could rewrite all of the PDS I/O
in assembler, but I'd rather not.  It would be nice if there were a
callable service that would just update the directory and add
statistics, with the restriction that my code really can't require a
TSO TMP or ISPF environment.   Also, I assume that updating a member
with statistics is expensive since it would probably have to rewrite
the whole directory to expand the directory entry length.

On a related question, I know that it is customary when adding or
updating PDS members for code to allocate the dataset with DISP=SHR
and then to use the ISPF ENQ protocols for serializing the directory
and member names.   Our plan is to allow this method, or to allow
DISP=OLD allocation of the dataset.    My question is this:  which
technique should be the default?

Any ideas or suggestions would be appreciated.

Kirk Wolf
Dovetailed Technologies

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to