1.

A JCL has 4 steps and job abends. How to restart the job and run only step 2?

Answer»

Specify RESTART = STEP2 in JOB statement. And include IF-THEN-ELSE construct as below−

//URMIIF JOB 1, CLASS=6, MSGCLASS=0, NOTIFY = &SYSUID,RESTART=STEP2//*//STEP1   EXEC//STEP2   EXEC//IF1     IF (STEP2.RC = 0 & STEP2.RC <> 0) THEN//STEP3      EXEC//STEP4      EXEC//ENDIF  


Discussion

No Comment Found