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
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
how to run batch program without jcl?
How to run cobol program using jcl?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
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 ?
Mention the types of job control statements?
Explain how can a jobs execution priority be modified?
What happens if both JOBLIB & STEPLIB is specified ?
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?
how to compare two datasets without using superce because output is limited to 133 bytes
Is acct parameter mandatory?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
what is the purpose of coding notify parameter in job statement?