Now, Get RPG Codes in all three formats only on this website on every RPGLE related programming article.

Fixed, /Free and Fully Free RPG


HLDJOB, RLSJOB and ENDJOB in AS400

HLDJOB, RLSJOB and ENDJOB in AS400
HLDJOB, RLSJOB and ENDJOB in AS400, HLDJOB, RLSJOB, ENDJOB, ibmi
HLDJOB, RLSJOB and ENDJOB in AS400

HLDJOB

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.

RLSJOB

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.

ENDJOB

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)

Related Post

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain