Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDS member-list inquiry

Status
Not open for further replies.

cyclops

Programmer
Aug 28, 2001
2
US
I am attempting to get a listing of all members in a PDS and the last time each of the members were updated.

Attempt1:
I looked at LISTDS and that just provides the members
DUMMY = OUTTRAP("MEM.")
"LISTDS '"my-pds"' MEMBERS"
DUMMY = OUTTRAP("OFF")

Attempt2:
I looked at LMMLIST and STATS (which would provide the information) only works within ISPF and not in REXX.
"ISPEXEC LMINIT DATAID(DSNM) DATASET('my-pds') ENQ(SHR)"
"ISPEXEC LMOPEN DATAID(&DSNM) OPTION(INPUT)"
DO FOREVER
"ISPEXEC LMMLIST DATAID(&DSNM) OPTION(LIST) MEMBER(MEM) STATS(YES)"
IF RC <> 0 THEN LEAVE
SAY MEM
END
"ISPEXEC LMCLOSE DATAID(&DSNM)"

Any help would be appreciated...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top