thanx. but i want 2 know abt the execution part. if a jcl error occurs, the jcl will execute till the end of the program. it will still create a load module provided no condition is given for link and edit step. what abt abend in these cases?
If a JCL error occurs that step itself will not be executed. The JCL will be scanned for errors before that steps execution begins.
But abend happens in the due course of the execution of a step.
If a JCL error happens the entire job stops there and no more steps will be executed and you will get a message in the spool stating that the following steps are not executed.
But For abend the remaining steps will be flushed.
For E.g. say step 3 has COND=EVEN mentioned and if JCL error occurs in step 2 then step 3 will not run but if a abend occurs in step2 then step 3 will run.
I dont get ur question.
if the job has only one step, that step will have a abend RC in case of abend.
In the case of JCL error, that one step will be found under the message, "NOT_EXECUTED_STEP_TABLE BEGIN".