CL Command Reference - DSCJOB
CL Command List > DSCJOB Reference
Description:
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:
1. A job being disconnected must be an interactive job.
2. A job which is being held cannot be disconnected.
3. A pass-through job cannot be disconnected unless the user has used the system request function to return to the source system from the pass-through target system.
4. The command must be issued from within the job being disconnected, or the issuer of the command must be running under a user profile which is the same as the job user identity of the job being disconnected, or the issuer of the command must be running under a user profile which has job control (*JOBCTL) special authority. The job user identity is the name of the user profile by which a job is known to other jobs. It is described in more detail in the Work Management book.
5. A job cannot be disconnected if PC organizer is active.
Examples:
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.