Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Display Job (DSPJOB) command shows, for the specified job, any of the following information:
The information can be shown whether the job is on the job queue, on an output queue, or active in the system. 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 job whose information is to be shown.
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 displayed.
Top |
Specifies the action taken when duplicate jobs are found by this command.
Top |
Example 1: Printing the Spooled Output
DSPJOB JOB(SMITH/PAYROLL) OUTPUT(*PRINT)
This command directs the information for the job named PAYROLL submitted by the user named SMITH to the job's output spooling queue for printing.
Example 2: Displaying the Job's Spooled Output
DSPJOB OPTION(*SPLF)
This command displays the spooled output for the current job.
Example 3: Displaying All of the Job's Information
DSPJOB OPTION(*ALL)
This command displays all of the information for the current job.
Top |
*ESCAPE Messages
Top |