Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Disconnect Job (DSCJOB) command allows the interactive user to disconnect all interactive jobs at the workstation and return to the sign-on display.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LOG | Job log | *NOLIST, *LIST | Optional, Positional 1 |
DROP | Drop line | *DEVD, *YES, *NO | Optional, Positional 2 |
JOB | Job name | Single values: * Other values: Qualified job name |
Optional, Positional 3 |
Qualifier 1: Job name | Name | ||
Qualifier 2: User | Name | ||
Qualifier 3: Number | 000000-999999 | ||
DUPJOBOPT | Duplicate job option | *SELECT, *MSG | Optional |
Top |
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.
Top |
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.
Top |
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.
Single values
Qualifier 1: Job name
Qualifier 2: User
Qualifier 3: Number
Top |
Specifies the action taken when duplicate jobs are found by this command.
Top |
Example 1: Disconnecting All Interactive Jobs
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.
Example 2: Disconnecting Job Without Releasing Switched Line
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.
Example 3: Deleting Information in Job Log
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.
Top |
*ESCAPE Messages
Top |