Display Service Status (DSPSRVSTS)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Display Service Status (DSPSRVSTS) command shows information about the current service status of the specified job. This includes the name of the job it is servicing or the name of the job servicing the specified job.

Restrictions:

Top

Parameters

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
DUPJOBOPT Duplicate job option *SELECT, *MSG Optional
Top

Job name (JOB)

Specifies which job is to have its service status shown.

Single values

*
Status information is shown about the job in which the command is entered.

Qualifier 1: Job name

name
Specify the job name of the job to be shown. If no user name or job number are specified, all of the jobs currently in the system are searched for the simple job name; the specified job name must be unique within the system.

Qualifier 2: User

name
Specify the user name of the job to be shown.

Qualifier 3: Number

000000-999999
Specify the job number of the job to be shown.
Top

Duplicate job option (DUPJOBOPT)

Specifies the action taken when duplicate jobs are found by this command.

*SELECT
The selection display is shown when duplicate jobs are found during an interactive session. Otherwise, an escape message is issued.
*MSG
An escape message is issued when duplicate jobs are found.
Top

Examples

DSPSRVSTS

This command shows the service status information for the job from which the command is entered.

Top

Error messages

*ESCAPE Messages

CPF3520
Job not found.
CPF3524
More than one job with specified name found.
CPF3925
Cannot open file &1.
CPF3950
Error message &2 received for file &1. Request ended.
Top