Mainframe Path Start learning free
Beginner8 min readLesson 4 of 4

Browse, View, Edit and option 6

Browse is read-only and handles even huge datasets. View uses the full editor but will not save over the original. Edit changes the data. Option 6 runs TSO commands inside ISPF, and the one rule to learn there is quoting: without quotes, TSO adds your prefix to the dataset name.

Three ways to open a dataset

ModeCan change?Best for
Browse (B in 3.4)NoVery large datasets, logs and dumps. Fast, and nothing can go wrong
View (option 1, V in 3.4)Not the original; you can save a copy with CREATE or REPLACEReading with editor tools: X ALL, FIND, HILITE, COLS
Edit (option 2, E in 3.4)YesMaking a change you intend to keep

Option 6: the TSO command shell

Option 6 gives you a TSO command line that keeps a history of what you ran. You can also run a TSO command from *any* ISPF command line by putting TSO in front of it, for example TSO LISTDS 'PROD.PAY.JCLLIB' MEMBERS.

CommandWhat it shows or does
LISTDS 'name' MEMBERSA dataset's attributes and, for a library, its members
LISTCAT ENTRIES('name') ALLThe catalog entry: volumes, dates, and for VSAM much more
SUBMIT 'name(member)'Submits that member as a batch job
STATUS jobnameWhether a job is waiting, running or finished
DELETE 'name'Deletes the dataset immediately. There is no confirmation panel

The quoting rule that catches everyone

Same name, two different datasets
===> LISTDS WORK.JCL
     TSO adds your prefix, so it looks for VSAHA1.WORK.JCL
===> LISTDS 'PROD.PAY.JCLLIB'
     In quotes: used exactly as written

In TSO, a dataset name without single quotes gets your TSO prefix (normally your user ID) added to the front. A name in single quotes is fully qualified and used as is. ISPF panels such as 3.4 do their own thing, but on the TSO command line this rule always applies.

TRY IT YOURSELF

Your user ID is VSAHA1. Which dataset does the TSO command LISTDS TEST.JCL look for?

Show a hint

No quotes means the prefix is added.

Show the solution

VSAHA1.TEST.JCL, because without quotes TSO adds your prefix.

Examples are for learning. Run commands and jobs only on a system you are authorised to use, such as a training or test system, and never on production without approval.

Common mistakes

Opening production members in Edit just to read them

Use View or Browse. Edit locks the member and makes accidental saves possible.

Forgetting the quotes around a fully qualified name

Without quotes, TSO adds your prefix and you get 'not found', or the wrong dataset.

Running DELETE from the command line in a hurry

There is no confirmation. One wrong qualifier deletes the wrong dataset.

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
← Comparing and searching: SuperC and Search-ForBack to ISPF hands-on: utilities and everyday tools