Work with Subsystem Jobs (WRKSBSJOB)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Subsystem Jobs (WRKSBSJOB) command allows you to work with jobs running in subsystems in the system, and jobs that are on a job or output queue. If a user name is specified, only those jobs belonging to the specified user are shown. Also, if one of the jobs shown on the subsystem display is selected, additional information about that job can be displayed.

Top

Parameters

Keyword Description Choices Notes
SBS Subsystem Name, *ALL, *JOBQ, *OUTQ Optional, Positional 1
USER User whose jobs to display Name, *ALL Optional
OUTPUT Output *, *PRINT Optional
Top

Subsystem (SBS)

Specifies the name of the subsystem (or all subsystems) for which the job name and job status of each job currently active in the subsystem, or jobs on a job queue or output queue are worked with.

*ALL
All jobs in all subsystems have their job information displayed. In this case, jobs that are on job queues and on output queues are also displayed.
*JOBQ
Jobs that are on a job queue are worked with.
*OUTQ
Jobs that have completed running and have spooled files on an output queue are worked with.

Note: This includes readers and writers, but does not include system jobs or subsystem monitor jobs.

name
Specify the name of the subsystem. All active jobs in this subsystem are displayed.
Top

User whose jobs to display (USER)

Specifies the name of the user whose jobs are displayed.

*ALL
All jobs being processed under all user names are displayed.
name
Specify a user name. All jobs with this user name are displayed.
Top

Output (OUTPUT)

Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.

*
The output is displayed for interactive jobs or printed with the job's spooled output for non-interactive jobs.
*PRINT
The output is printed with the job's spooled output.
Top

Examples

Example 1: Working With All Jobs

WRKSBSJOB

This command, entered from a work station, allows you to work with all jobs in all subsystems, and the jobs on the job queues and output queues.

Example 2: Working With One User's Job

WRKSBSJOB   SBS(QBATCH)  USER(JONES)

This command allows you to work with all jobs in the QBATCH subsystem that belong to the user profile of the user named JONES.

Example 3: Working With Jobs on an Output Queue

WRKSBSJOB   SBS(*OUTQ)

This command allows you to work with jobs that are on an output queue.

Top

Error messages

*ESCAPE Messages

CPF1003
Subsystem &1 not active.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
CPF9850
Override of printer file &1 not allowed.
CPF9851
Overflow value for file &1 in &2 too small.
CPF9871
Error occurred while processing.
Top