WRKSBSJOB (Work with Subsystem Jobs)

WRKSBSJOB Command syntax diagram

 

Purpose

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

 

Optional Parameters

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.

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

*ALL: All jobs in all subsystems have their job information displayed. Jobs that are on job queues and on output queues are also worked with.

*JOBQ: Jobs that are on a job queue are worked with.

*OUTQ: Jobs that are on an output queue are worked with.

subsystem-name: Specify the name of the subsystem. All active jobs in this subsystem are worked with.

USER
Specifies the name of the user whose jobs are worked with.

*ALL: All jobs being processed under all user names are worked with.

user-name: Specify a user name. All jobs with this user name are worked with.

OUTPUT
Specifies whether the output is displayed at the requesting work station or printed with the job's spooled output. More information on this parameter is in commonly used parameters.

*: Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.

*PRINT: The output is printed with the job's spooled output.

Examples for WRKSBSJOB

Example 1: Working With All Jobs

WRKSBSJOB

This command, entered from a work station, allows the user 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 the user 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 the user to work with jobs that are on an output queue.

Error messages for WRKSBSJOB

*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.