> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Howard Brazee
> Sent: Thursday, October 18, 2007 9:22 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: How to read source from a PDS member
> 
> 
> On Thu, 18 Oct 2007 09:43:51 -0400, in bit.listserv.ibm-main you
> wrote:
> 
> >I need to read source code from a PDS member whose name I 
> don't know until my program runs, much the same as the COBOL 
> >compiler handles "COPY memname" statements.  Is dynalloc the 
> only way to go about it or does zOS provide a nice friendly 
> >interface that lets me ask for source member data a line at 
> a time?  Something comparable to VSE's LIBRM would be ideal.
> 

I didn't see the original post. What language? Enterprise COBOL makes
this very simple because it can hide the details of dynamic allocation
from the programmer. In Java, use JZOS and the zFile class to do all the
difficult work for you. In assembler, you use BPAM. That entails OPENing
the PDS as a PDS, doing a FIND for the member name, then doing a READ
for each physical block of the member. Deblocking into individual
records is done by the application program, not the access method. 

If you run your program under ISPF, then you can use the LM* services to
do all the "fiddly" work for you.

I don't know z/VSE, but I did a quick look at it. I don't know of
anything as nice and easy as that in z/OS.

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