> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Wolf
> Sent: Tuesday, July 29, 2008 11:14 AM
> To: [email protected]
> Subject: Statistics when writing PDS members
> 
> 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.

Can C++ affect the STOW parameters? If so, then the ISPF statistics are
just in the user area of the directory entry. Their format is documented
in the ISPF manuals.

Ref:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ispzdg60/C.4.
4

tinyurl to above: http://preview.tinyurl.com/5k9cby

> 
> 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?

Personally, I would use the ISPF technique as the default. I think it is
superior in that concurrent access is more easily done. Most other
software also uses this defacto standard.

> 
> Any ideas or suggestions would be appreciated.
> 
> Kirk Wolf
> Dovetailed Technologies


--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
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