Command reference / job

DSCJOB

Disconnect Job

The Disconnect Job (DSCJOB) command allows the interactive user to disconnect all interactive jobs at the workstation and return to the sign-on display.

Allowed environments: *ALL. Positional parameters: 3.

Restrictions

Parameters

LOG Job log

Specifies whether the job log for this interactive job is deleted or is included in the job's spooled output for printing. This entry takes precedence over the LOG parameter value specified for the job. This parameter has meaning only if the disconnected job is canceled due to the disconnect time interval being exceeded. The time interval is defined by system value QDSCJOBITV.

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

Allowed values: *NOLIST, *LIST

*NOLIST
The information in the job log is deleted.
*LIST
The job log, and the rest of the job's spooled output, is spooled for printing.

DROP Drop line

Specifies whether the switched line attached to the work station is disconnected (dropped) if no other work stations on the same line are signed on. This parameter is ignored if the work station is attached to a nonswitched line.

Type
*CHAR
Required
No
Default
*DEVD
Length
5
Case
Uppercase

Allowed values: *DEVD, *YES, *NO

*DEVD
The value specified in the Drop line at signoff (DROP) parameter of the work station's device description is used.
*YES
The switched line is disconnected when the job is ended if no other work stations are signed on the line.
*NO
The switched line is not disconnected when the job is ended.

JOB Job name

Specifies the name of a job being disconnected from a work station. The job or jobs that are disconnected from a work station can be reconnected if the same user signs on the same work station. Note: You must have job control (*JOBCTL) special authority to specify the name of an active or interactive job.

Type
*QUAL
Required
No
Default
*
Case
Uppercase

Suggested / special values: *

*
The jobs associated with the work station that issued this command are disconnected.
name (Job name)
Specify the name of the job. If no additional job qualifiers are given, all of the jobs currently in the system are searched for the name of the job. If duplicates of the specified name are found, a qualified job name must be specified.
name (User)
Specify the user name that identifies the user profile under which the job is started. Specifying the user as a qualifier is only necessary if a duplicate job name exists for different users. If a duplicate job name exists for the same user, the job must be qualified with the job number.
000000-999999
Specify the system-assigned job number. Specifying the job number as a qualifier is only necessary if a duplicate job name exists for the same user.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job name Job name

Type
*NAME
Required
No
Length
10
Case
Uppercase

User User

Type
*NAME
Required
No
Length
10
Case
Uppercase

Number Number

Type
*CHAR
Required
No
Length
6
Case
Uppercase

DUPJOBOPT Duplicate job option

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

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

Allowed values: *SELECT, *MSG

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

Examples

DSCJOB

This command enables the user of the work station to disconnect all the interactive jobs associated with the work station. The switched line is dropped only if that is specified in the work station device description of this work station and if no other work station on this line is active. If the job is disconnected when the disconnect interval in the QDSCJOBITV system value is reached, the job is ended and the job log is not included with the job's spooled output.

DSCJOB LOG(*LIST) DROP(*NO)

This command disconnects the interactive job, but the switched line is not released. If the job is ended due to the QDSCJOBITV system value, the job log is included with the job's spooled output.

DSCJOB LOG(*NOLIST) DROP(*DEVD) JOB(123497/DEPT1/DSP04)

This command disconnects the interactive job 123497/DEPT1/DSP04 and any other jobs on that work station, for example, secondary jobs or group jobs. If the job is disconnected when the disconnect interval in the QDSCJOBITV system value is reached, the job is ended and the job log is not included with the job's spooled output. The work station device description is checked to determine whether the switched line is disconnected.

IBM command documentation

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