Disconnect all jobs from a device

The Disconnect Job (DSCJOB) command allows the interactive user to disconnect all interactive jobs at the workstation and return to the signon display. The switched line is dropped only if that is specified in the workstation device description of this workstation and if no other workstation on this line is active. If the job is disconnected when the disconnect interval in the Time-out interval for disconnected jobs (QDSCJOBITV) system value is reached, the job is ended and the job log is not included with the job's spooled output.

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.
  5. The job user identity is the name of the user profile by which a job is known to other jobs.
  6. A job cannot be disconnected if PC organizer is active.
Command: Disconnect Job (DSCJOB)
Related concepts
Disconnect interactive jobs