If a job has 3 steps and step 1 and step 3 should get
executed and step 2 should not get executed irrespective of
the return code from the previous steps. How can it be done?

Answer Posted / mr. cooooool

Hi..........
We can use condition parameter for step2.
//JOBCARD
//STEP1 EXEC=PGM1
//STEP2 EXEC=PGM2,COND=(0,LE,STEP1)
//STEP3 EXEC=PGM3
//

THANKS

Is This Answer Correct ?    30 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

942


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

710


how to run batch program without jcl?

10104


How to run cobol program using jcl?

662


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2115






The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

956


Mention the types of job control statements?

702


Explain how can a jobs execution priority be modified?

751


What happens if both JOBLIB & STEPLIB is specified ?

626


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

657


how to compare two datasets without using superce because output is limited to 133 bytes

1496


Is acct parameter mandatory?

768


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

676


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

679


what is the purpose of coding notify parameter in job statement?

695