Page 1 of 1

JCL steps are not executing.

Posted: Wed Jan 17, 2024 1:51 pm
by Prakhar Sharma
Hi,

Can anyone tell me what we can do if job executing for a few steps after that steps are not executing.
Please advice

Re: JCL steps are not executing.

Posted: Wed Jan 17, 2024 10:48 pm
by zum13
Hello.

If the job is not ending with an error or abend, then the most likely reason would be down to condition code checks. These will take the form of the "COND" parameter on the "EXEC" statement or steps being enclosed within "IF ... ENDIF" statements.

The reason for adding this type of check is to ensure that an earlier step has completed successfully (i.e. the condition code is less than or equal to a specific value). It could be that something within your first few steps has not ended as expected and the condition code checks are being used to ensure that the job ends safely rather than continuing with bad input. If that's the case, then hopefully the reason should be in the job output for those steps.