IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PDS member list with stats


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 205
Location: Toronto, ON, Canada

PostPosted: Tue Jan 21, 2025 5:25 am
Reply with quote

Is there a way to get a list of members from a PDS in an offline job? This would include the member stats. Would prefer to not use ISPF environment services.
I can code a Rexx to use LMMLIST service but was hoping for something ready made and simple.
Back to top
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 65
Location: Australia

PostPosted: Tue Jan 21, 2025 7:23 am
Reply with quote

"https://www.ibm.com/docs/en/zos/3.1.0?topic=pds-directory"

Allocate the PDS as a sequential file and process the directory.

The bulk of the format is documented here :

www.ibm.com/docs/en/zos/3.1.0?topic=information-ispf-statistics-entry-in-pds-directory
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 744
Location: Denmark

PostPosted: Tue Jan 21, 2025 2:34 pm
Reply with quote

See PDS86 in file 182 at cbttape.org. There is a command called ATTRIB, which also works as a member list with stats. It even handles loadlib member stats. Alternatively I have a REXX which can show ISPF as well as most loadlib stats. Let me know if you want it.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1379
Location: Bamberg, Germany

PostPosted: Tue Jan 21, 2025 2:52 pm
Reply with quote

As @Willy has suggested, PDS86 is the simplest way to do it.

Code:
//ATTRIB   EXEC PGM=IKJEFT1B                 
//STEPLIB  DD DISP=SHR,DSN=<PDS86.LOADLIB>
//SYSTSPRT DD SYSOUT=*                       
//SYSTSIN  DD  *                             
  PDS86 '<your_dsn>' ATTR :             
/*
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 744
Location: Denmark

PostPosted: Tue Jan 21, 2025 3:11 pm
Reply with quote

For PDS86 list for loadlibs, I will recommend the 'short' operand, i.e. PDS86 '<your_dsn>' ATTR : SHORT
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 205
Location: Toronto, ON, Canada

PostPosted: Tue Jan 21, 2025 7:56 pm
Reply with quote

Thanks. We have StarTool so the ATTRIB command works.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 744
Location: Denmark

PostPosted: Tue Jan 21, 2025 11:42 pm
Reply with quote

Great, STARTOOL, and PDS86 which is mostly a free version of STARTOOL, are great for that sort of things.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top