Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Work with Job (WRKJOB) command allows you to work with or change the following information concerning a user job:
The information for the following options can be shown only when the job is active: job run attributes, call stack information, job lock information, library list information, job log information, open file information, file override information, commitment control status, communications status, activation group information, mutex information, and thread information.
The following options can be found regardless of whether the user's job is on the job queue, on an output queue, or active in the system: job status attributes, job definition attributes, and spooled file information. Note, however, that the job is not considered to be in the system until all of its input has been completely read in; only then is an entry placed on the job queue.
Restrictions:
The job user identity is the name of the user profile by which a job is known to other jobs. More information about the job user identity is in the Work Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
JOB | Job name | Single values: * Other values: Qualified job name |
Optional, Positional 1 |
Qualifier 1: Job name | Name | ||
Qualifier 2: User | Name | ||
Qualifier 3: Number | 000000-999999 | ||
OUTPUT | Output | Optional, Positional 2 | |
OPTION | Option | *SELECT, *STSA, *DFNA, *RUNA, *SPLF, *JOBLOG, *PGMSTK, *JOBLCK, *LIBL, *OPNF, *FILOVR, *CMTCTL, *CMNSTS, *ACTGRP, *MUTEX, *THREAD, *MLBA, *ALL | Optional |
DUPJOBOPT | Duplicate job option | *SELECT, *MSG | Optional |
Top |
Specifies the name of the user job whose information is being worked with.
Single values
Qualifier 1: Job name
Qualifier 2: User
Qualifier 3: Number
Top |
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Top |
Specifies which information is being worked with.
Top |
Specifies the action taken when duplicate jobs are found by this command.
Top |
Example 1: Printing the Job's Information
WRKJOB JOB(SMITH/PAYROLL) OUTPUT(*PRINT)
This command prints information for the job named PAYROLL submitted by the user named SMITH to the job's output spooling queue.
Example 2: Working with the Current Job's Spooled Output
WRKJOB OPTION(*SPLF)
This command allows you to work with the spooled output for the current job.
Example 3: Working with All of the Current Job's Information
WRKJOB OPTION(*ALL)
This command allows you to work with all of the information for the current job.
Top |
*ESCAPE Messages
Top |