z/OSbeginner

TSO/ISPF Fundamentals

Understand TSO as the interactive time-sharing interface to z/OS and ISPF as the panel-driven productivity layer built on top of it.

TSO is the interactive session on z/OS. ISPF is the panel-driven application almost everyone actually works in, layered on top of it.

TSO is the phone line connecting you to the mainframe; ISPF is the numbered voicemail menu system built on top of that line that gets you to exactly the function you need (press 2 for editing, 3 for dataset utilities) without having to dial a raw, unstructured command every time.

Key Concepts

1
The distinction. TSO gives you a command line against z/OS. ISPF gives you menus, an editor and utilities. Nearly nobody uses raw TSO for daily development.
2
The options you use constantly.
    2   Edit        write COBOL, JCL, copybooks
    3   Utilities   3.4 dataset list, 3.2 allocate, 3.3 copy/move
    6   Command     issue TSO commands
    SDSF            job output, held queues, active work
3
Exact numbering varies by shop, but 2, 3.4 and SDSF are where the time goes.
4
3.4 is the one to be fluent in. It lists datasets matching a pattern and gives you line commands against each:
5
    E  edit      B  browse     D  delete
    I  info      R  rename     Z  compress a PDS
6
Typing PROD.PAYROLL.* and getting everything matching is how you find things on a system with no directory tree.
PROD.PAYROLL.*
7
Editor commands worth knowing by heart.
    F string ALL        find every occurrence
    C old new ALL       change every occurrence
    X ALL ; F string ALL   exclude everything, then show only matches
    COLS                show a column ruler -- essential in COBOL
    SUBMIT              submit the member as a job
8
The exclude-then-find pattern is how you read a 10,000-line program: hide it all, then reveal only the lines mentioning the field you care about.
9
Line commands.
    I    insert a line       R    repeat
    D    delete              C/M  copy / move, with A or B for after/before
    CC   block               ))   shift right
10
COBOL's column rules still apply in the editor. Columns 1-6 are sequence numbers, 7 is the indicator (a * there is a comment), 8-11 is Area A, 12-72 is Area B, and 73-80 is ignored.
*
11
Code drifting past column 72 is silently truncated by the compiler, which is why COLS matters and why pasting from a wide window is a recurring source of confusing compile errors.
COLS
12
= jumps. Typing =3.4 goes straight there from anywhere, and =X exits. Once you know the option numbers you stop navigating menus at all — which is the actual measure of fluency here.
==3.4=X
13
What the interviewer is probing.1. "What is the relationship between TSO and ISPF?" Probing: the basics. Stalls: "They are the same." Moves up: TSO is the interactive session and command environment; ISPF is the panel-driven application that runs under it.
14
2. "How do you find a string across a library?" Probing: practical skill. Stalls: "Open each member." Moves up: ISPF option 3.14 SRCHFOR, or SUPERC in batch for larger scopes.
15
3. "What is the edit macro facility for?" Probing: the depth. Stalls: "Nothing." Moves up: scripting repetitive edits in REXX or CLIST, which turns a thousand manual changes into one command.
16
4. "What do you use SDSF for?" Probing: the operational basics. Stalls: "Nothing." *Moves up:* viewing job output, checking job status, and cancelling or purging jobs — the day-to-day batch monitoring tool.