Working with PDSE V2 generations can be a challenge since IBM does not fully
support them. True they have made them available for us to use but they have
not made it easy. ISPF supports them in a very minimal way and not intuitively.
An excellent presentation was given at SHARE in Seattle in 2015 by Thomas Reed
which provided an example of how to list generations. The approach is
basically to:
1. Use dsinfo to get the number of generations allowed (zdsngen)
2. Lminit and then lmopen the pdse
3. In a loop using the zdsngen as the limit
a. Edit the dataid - member - gen# using a macro
i. The macro
just does a cancel to end
b. Test the return code for < 5 and if so then you've found a generation
The challenge that I've discovered is that zdsngen limit is like a gdg limit -
that is the number of generations allowed but the gen number, like a gdg
number, can grow beyond the limit as it does not wrap.
Has anyone stumbled across a better way to find the member generations?
Using the loop process I've found you have to do an almost infinite limit, or
set it fairly high or you risk missing a generation or 100. And the overhead of
the edit isn't trivial.
--------------------------------------------------------------------------
Lionel B. Dyck (Contractor)
Mainframe Systems Programmer
Enterprise Infrastructure Support (Station 200) (005OP6.3.10)
VA OI&T Service Delivery & Engineering
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN