SDSF (System Display and Search Facility) is a powerful TSO/ISPF application that provides system administrators and programmers with the ability to view, monitor, and manage job output and system resources in z/OS environments. It serves as a gateway to the JES (Job Entry Subsystem) spool, allowing you to interact with jobs, their outputs, and system resources.
SDSF is an essential tool for mainframe professionals, simplifying tasks such as:
SDSF is typically accessed through ISPF. The most common methods to access SDSF are:
SDSF
on the ISPF command line and press Enter.SDSF
command from TSO READY mode.1==> SDSF
Alternatively, you can directly access a specific SDSF panel using commands like:
1==> ST
to directly access the Status panel.
SDSF is organized into panels that each serve specific functions. The most commonly used panels include:
The Status panel displays active jobs in the system, including batch jobs, started tasks, and TSO users. This is one of the most frequently used panels for monitoring job execution.
12345678SDSF STATUS DISPLAY ALL CLASSES LINE 1-16 (195) COMMAND INPUT ===> SCROLL ===> PAGE NP JOBNAME JobID Owner Prty Queue C Pos SAff ASys Status JOB1234 JOB12345 USER1 15 EXECUTION A SYS1 SYS1 EXECUTING JOB5678 JOB56789 USER2 15 EXECUTION A SYS1 SYS1 EXECUTING CICSPROD STC01234 SYSPROG1 15 EXECUTION A SYS2 SYS2 EXECUTING DBPROD STC05678 SYSPROG2 15 EXECUTION A SYS1 SYS1 EXECUTING TSOJOHN TSU09876 JOHN 15 EXECUTION A SYS1 SYS1 EXECUTING
The Output Queue panel displays jobs with output waiting to be processed. This panel is useful for finding and viewing job output.
123456SDSF OUTPUT DISPLAY ALL CLASSES LINE 1-10 (82) COMMAND INPUT ===> SCROLL ===> PAGE NP JOBNAME JobID Owner Prty C Queue Dest Rec-Cnt Pages PAYROLL JOB01234 PAYUSER 15 A PRINT LOCAL 12,345 123 INVRUN JOB05678 INVUSER 15 A PRINT LOCAL 5,678 57 RPTGEN JOB09876 RPTUSER 15 A PRINT LOCAL 34,567 346
The Held Output Queue panel shows output that has been held in the JES spool. This is typically used for viewing output before deciding whether to release it for printing or to purge it.
The Input Queue panel shows jobs waiting to be executed. This panel helps monitor the batch workload waiting to be processed.
The System Log panel provides access to the system log (SYSLOG), which contains system messages, operator commands, and responses. This is valuable for system troubleshooting.
12345SDSF SYSLOG SYSTEM SYS1 LINE 1-19 (32K) COMMAND INPUT ===> SCROLL ===> PAGE R00.00 S0000000 SYS1 2023134 00:00:00.00 RCVD000I IEA989I SLIP TRAP ID=X133 MATCHED R00.00 S0000001 SYS1 2023134 00:01:15.45 RCVD000I IEF196I IEF142I BACKUP JOB12345 STEP1 - STEP WAS EXECUTED - COND CODE 0000 R00.00 S0000002 SYS1 2023134 00:03:22.11 RCVD000I IEF196I IEF142I RESTORE JOB67890 STEP1 - STEP WAS EXECUTED - COND CODE 0000
The Display Active panel shows information about active address spaces, including CPU usage, memory utilization, and other system resource statistics. It's similar to the UNIX "top" command.
The Multi-Access Spool panel shows information about JES2 members in a JES2 MAS (Multi-Access Spool) configuration.
SDSF uses a command-based interface. Here are some of the most commonly used commands:
Command | Description |
---|---|
FIND or F | Search for text in the current display |
LOCATE or L | Position the display to a specific point |
SORT | Sort the display by specified columns |
FILTER or ONLY | Filter the display to show only certain entries |
? | Display column meanings |
WHO | Display information about current SDSF user |
Print the current display |
SDSF also supports line commands that are entered in the NP (Prefix) column next to a specific job or output:
Line Command | Description |
---|---|
S or / | Select a job to view its output |
P | Purge a job or output |
C | Cancel a job |
H | Hold a job or output |
A | Release a job or output |
XDC | Print selected output and then purge it |
Q | Display job information |
One of the most common uses of SDSF is to view job output. This can be done using these steps:
L jobname
)S
or /
in the NP column next to the jobS
or /
next to the DDNAME you want to view (e.g., JESMSGLG, JESJCL, JESYSMSG, or application-specific output)123456789SDSF JOB DATA DISPLAY PAYROLL JOB01234 LINE 1-15 (15) COMMAND INPUT ===> SCROLL ===> PAGE NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page JESMSGLG JES2 1 PAYUSER X LOCAL 18 JESJCL JES2 2 PAYUSER X LOCAL 18 JESYSMSG JES2 3 PAYUSER X LOCAL 24 SYSPRINT STEP1 11 PAYUSER A LOCAL 8,456 85 PAYCHK STEP1 12 PAYUSER A LOCAL 3,567 36 TAXRPT STEP1 13 PAYUSER A LOCAL 345 4
Once you select a DDNAME, you'll see the actual output content. In this view, you can use commands like:
FIND
or F
to search for specific textTOP
to go to the beginning of the outputBOTTOM
or BOT
to go to the end of the outputLEFT
or RIGHT
to scroll horizontallyPRINT
to print the outputSDSF is invaluable for troubleshooting JCL and application issues:
When a job fails with JCL errors, you can use SDSF to:
For application errors, check:
For system-wide issues:
SDSF access is typically controlled by security products like RACF, ACF2, or Top Secret. Access to SDSF functions may be restricted based on:
SDSF functionality can also be accessed in batch mode using SDSF batch. This allows you to:
123456789//SDSFJOB JOB (ACCT),'SDSF BATCH',CLASS=A //STEP1 EXEC PGM=SDSF //ISFOUT DD SYSOUT=* //ISFIN DD * ST OWNER ALL PREFIX PAYROLL* PRINT /*
1PREFIX PAYROLL*
1OWNER MYUSERID
1PRINT ODSN 'MYUSERID.JOBOUTPUT.TXT'
1/D A,L
Describe the steps you would take to view a job's output if you know the job name is PAYROLL123.
A job has failed with a JCL error. List the DDNAMEs you would examine to diagnose the problem and explain what information each would provide.
You need to check if a specific started task named CICSPROD is active in the system. Detail the SDSF commands you would use to locate and examine this task.
1. What is the primary purpose of SDSF?
2. Which SDSF panel would you use to view active jobs in the system?
3. What line command would you use in SDSF to cancel a running job?
4. Which DDNAME contains the JCL that was submitted for a job?
5. What command would you use to filter SDSF display to show only jobs with names starting with "PAY"?
Learn about the different components of the job processing system in z/OS and their roles in managing jobs.
Explore the JES2 job processing system and its components.
Learn about TSO and ISPF, two powerful tools for interacting with z/OS.
Explore the different system commands available in z/OS and their uses.