top of page

Getting PDS members name & lines of code

  • Writer: Subhabrata Datta
    Subhabrata Datta
  • Jul 1, 2020
  • 1 min read
How to get the PDS members name and lines of code using PX command

Requirement:

Get the list of PDS members in zos (mainframe OS) and the corresponding lines of members


Solution:

We can do this using PX command


Step 1:

Go to option 3.4, list the PDS files you require.

Put PX in front of the required file.

ree

You will get a message 'Index Printed'.


Step 2:

The index will be printed to the latest *.*.SPF*.LIST dataset.

To get the latest LIST dataset, type LIST in the command line.

ree

You can see the latest list dataset as marked in the below screenshot. Choose option 3 and press ENTER so that dataset is not deleted or not replaced while we print something else to the list dataset. (It is also required to be able to View or Edit the list dataset).

ree

You can now browse the dataset or download the file to your workstation & import to excel for required formatting.

The 'member name' and the 'Current no of lines' are what we need

ree

Comments


bottom of page