Mainframe Path Start learning free
Beginner6 min readLesson 3 of 4

Option 3.4: finding and handling datasets

3.4 is where you list datasets matching a pattern and then do things to them. Nearly every task starts here: find the library, open the member, make the change.

Listing everything under a high-level qualifier
 Menu  RefList  RefMode  Utilities  Help
 --------------------------------------------------------------
                    Data Set List Utility
 Option ===>

   Dsname Level  . . . PROD.PAY.*
   Volume serial . . .

Result:
 Command - Enter / to select action        Message      Volume
          PROD.PAY.MASTER                                  DASD01
          PROD.PAY.JCLLIB                                  DASD03
          PROD.PAY.SOURCE                                  DASD03
          PROD.PAY.LOADLIB                                 DASD07

Line commands: what you type beside a dataset

CommandDoes
EEdit — open for change
V or BView / Browse — open read-only
IInformation — record format, size, extents, dates
MMember list, for a partitioned library
ZCompress a PDS to reclaim space
DDelete (it will confirm)
RRename
CCopy
/Show the full menu of actions for that line

Patterns

Member lists

A partitioned dataset is a library containing members — think of it as a folder of files. Type M beside it, or open it and you get the member list. From there E edits a member, S selects it, and D deletes it. You can also open a member directly by typing the dataset name with the member in parentheses: PROD.PAY.JCLLIB(PAYRUN01).

Common mistakes

Editing production source directly

Most sites route changes through a source control tool. Editing the live library is either impossible or a serious process breach — find out which on day one.

Using D without reading the dataset name

There is a confirmation panel. Read it. Deleting a production library is recoverable but the conversation is unpleasant.

Assuming an empty list means the dataset is gone

More often the pattern is wrong, or you lack read authority — in which case it simply is not shown to you.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← Reading an ISPF panelThe ISPF editor, properly →