|HLDJOB, RLSJOB and ENDJOB in AS400|
The Hold Job (HLDJOB) command held the job i.e. it stops the job processing and we can resume the Job later.
Holding a Job will hold all the threads within that job.
The job is held until it is released by the Release job (RLSJOB) command, or Cleared by the Job queue (CLRJOBQ) command, or Ended by the End Job (ENDJOB) command, or ended when the job is active by ending the subsystem using command ENDSBS or the End system (ENDSYS) command or the Power-down system (PWRDWNSYS) command.
The Release Job (RLSJOB) command releases the job from the held state done by the (HLDJOB) command or if the job was submitted held job using the SBMJOB command.
The job which is released becomes active again and at the time of releasing the job, it can be on the job queue (JOBQ), on the output queue (OUTQ), or active in the subsystem.
Release the job will release all its related threads.
End Job (ENDJOB) command ends the specified job. The job can be on the Job Queue (JOBQ), or Active, or completed.
When ENDJOB command triggers for the specified job then all the open database files within that job get closed, Joblog spooled to the output queue (OUTQ), etc. For ending the job immediately we can specify the OPTION parameter value as *IMMED.
ENDJOB JOB(TESTJOB) OPTION(*IMMED) SPLFILE(*YES)
- AS400 Jobs
- Work with Job (WRKJOB) in AS400
- Work with Spooled Files (WRKSPLF) in AS400
- Submit Job (SBMJOB) in AS400
- How does a batch job start in AS400
- Job Log in AS400
- Work with Active Jobs (WRKACTJOB) in AS400
- Work with User Jobs (WRKUSRJOB) in AS400
- Work with Submitted Jobs (WRKSBMJOB) in AS400
- Display Job Log (DSPJOBLOG) in AS400
- Job Status in AS400
- Sign Off (SIGNOFF) in AS400
Post a Comment