Work with Submitted Jobs (WRKSBMJOB)

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

The Work with Submitted Jobs (WRKSBMJOB) command allows you to work with all jobs submitted from your work station, job, or user profile. Jobs submitted with *NO specified for the Allow display by WRKSBMJOB (DSPSBMJOB) parameter of a Submit Job (SBMJOB) command are not displayed by this command.

Top

Parameters

Keyword Description Choices Notes
SBMFROM Jobs submitted from *USER, *WRKSTN, *JOB Optional, Positional 1
OUTPUT Output *, *PRINT Optional, Positional 2
Top

Jobs submitted from (SBMFROM)

Specifies the type of submitted jobs that are displayed.

*USER
Jobs that were submitted from a job having the same user profile as the job in which this command is entered are displayed.
*JOB
Jobs displayed that were submitted from the same job in which this command is entered are displayed.
*WRKSTN
Jobs that were submitted from the same work station at which this command is entered 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

WRKSBMJOB   SBMFROM(*USER)

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

Top

Error messages

*ESCAPE Messages

CPF9845
Error occurred while opening file &1.
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