CONTROL-M for z/OS - How to remove a job stuck in EXECUTING status from the Control-M for z/OS Active Jobs File? - INCLUDES VIDEO
Knowledge Article
CONTROL-M for z/OS - How to remove a job stuck in EXECUTING status from the Control-M for z/OS Active Jobs File? - INCLUDES VIDEO
How to remove a job stuck in EXECUTING status from the Control-M for z/OS Active Jobs File?
Control-M for z/OS
Control-M for z/OS
All Control-M for z/OS versions
Control-M for z/OS
Control-M for z/OS
All Control-M for z/OS versions
A job is no longer executing but it remains in EXECUTING status (or some other ACTIVE status) on the AJF and is not properly updated. Since a job in an ACTIVE status (i.e. not WAIT... or ENDED...) cannot be HELD and Deleted manually, how can this job record be removed?
1) Firstly check that the problematic JOB's sysout has not been HELD under JES2! If the JOB is HELD then release it and check if this solves the problem.
2) If the JOB is NOT HELD: Jobs may be forced off the AJF using the utility CTMCAJF. Here is a sample JCL and control statements to delete an unwanted job from the AJF. This uses the CLEANUP function, which will place the job in DELETED status, and the next New Day will physically remove it.
The advantage to this approach is that CONTROL-M monitor does not need to be down as it would be needed with the COMPRESS function. The COMPRESS function will physically remove the record and free up the AJF slot immediately. But Control-M, IOAGATE and all on-line sessions must be stopped to run COMPRESS.
In the sample JCL below: - Customize the JOB card. - Customize the JCLLIB with the adequate PROCLIB. - Customize the MEMBER name in the INCLUDE MEMBER card. Replace xxxxxxxx with the MEMNAME to be deleted. NOTE: If this MEMNAME appears on the AJF more than once (i.e. for different ODATEs), the date parameters FROM and TO may be inserted after SELECT MEMBER to limit the scope to a specific Job Record
//CTMCAJF3 JOB ...// JCLLIB ORDER=IOA.V630I.PROCLIB
// INCLUDE MEMBER=IOASET
//COMPRESS EXEC CTMCAJF
//SYSIN DD *
CLEANUP
SELECT MEMBER xxxxxxxxIGNORE MEMBER *
/*