On Sat, 6 Jul 2013 22:31:22 -0500, Ze'ev Atlas wrote:

>
The program should be a driver that gets a PDS or PDSE library name, reads the 
directory of that library and then opens each member in turn in a loop and 
reads it and apply some process that uses calls to some LE package.  Could that 
be done and is there any freely available sample code?
>
>...
>It cannot be using USS as the whole purpose of the project is doing something 
>from within native z/OS.
> 
You're using a strange definition of "native".  Unix System Services was
available under MVS 5.2.2.  z/OS is the newcomer; the immigrant.  Is it
required that your code work under versions of MVS older than 5.2.2?

Allocate the PDS(E) with DSORG=PS; RECFM=F; LRECL=256.  Parse out
member names.  I believe the data formats are in Using Data Sets; perhaps
defined more formally elsewhere.  Allocate each member in turn (but does
COBOL support DYNALLOC?) and read it.

Disclaimer:  I've done this in Rexx.  If it can't be done in COBOL I have
YA good reason for not programming COBOL.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to