Command reference / job

WRKSBMJOB

Work with Submitted Jobs

Lets you work with all jobs submitted from your workstation, job, or user profile. Jobs submitted with the Allow display by WRKSBMJOB (DSPSBMJOB) parameter set to *NO on SBMJOB are not displayed by this command. The QSYS2.JOB_INFO table function returns similar information.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

SBMFROM Jobs submitted from

Specifies the type of submitted jobs that are displayed. This is optional.

Type
*CHAR
Required
No
Default
*USER
Length
7
Case
Uppercase

Allowed values: *USER, *WRKSTN, *JOB

*USER
Jobs submitted from a job with the same user profile as the job in which this command is entered are displayed.
*JOB
Jobs submitted from the same job in which this command is entered are displayed.
*WRKSTN
Jobs submitted from the same workstation at which this command is entered are displayed.

OUTPUT Output

Specifies whether the command output is displayed at the requesting workstation or printed with the job's spooled output. This is optional.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
Displayed for interactive jobs, or printed with the job's spooled output for non-interactive jobs.
*PRINT
Printed with the job's spooled output.

Examples

WRKSBMJOB SBMFROM(*USER)

Lets you work with or change a list of jobs submitted by a job running under the same user profile as the job where this command is run.

IBM command documentation

Generated from os/cl/catalog/WRKSBMJOB.json and os/cl/help/WRKSBMJOB.json.