How to execute step2,step5,step7 of a proc of 10 steps?
You are not allowed to change in JCL.

Answer Posted / krish123

we can use COND code in order to execute this. Use condition
code in each step
//JOBNAME JOB ACCT, RESTART=PROCA.STEP2 ---> INORDER TO
EXECUTE THE PROGRAM FROM STEP2
//PROCA EXEC PROCA

//STEP1 EXEC PGM=PROGRAM1
//STEP2 EXEC PGM=PROGRAM2,COND=(0,LT,STEP1)
//STEP3 EXEC PGM=PROGRAM3,COND=(0,GT,STEP2)
//STEP4 EXEC PGM=PROGRAM4,COND=(0,GT,STEP3)
//STEP5 EXEC PGM=PROGRAM5,COND=(0,LT,STEP4)
//STEP6 EXEC PGM=PROGRAM6,COND=(0,GT,STEP4)
//STEP7 EXEC PGM=PROGRAM7,COND=(0,LT,STEP6)
//STEP8 EXEC PGM=PROGRAM8,COND=(0,GT,STEP7)
//STEP9 EXEC PGM=PROGRAM9,COND=(0,GT,STEP8)
//STEP10 EXEC PGM=PROGRAM10,COND=(O,GT,STEP9)

Is This Answer Correct ?    11 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of the dd mgmtclas keyword in sms datasets?

730


Name the parameters which can be used to limit the number of records written to a sysout dataset?

648


What does a disposition of (MOD,DELETE,DELETE) mean ?

660


What is jcl in mainframe, and how many types of jcl statements are there for a job?

626


What is the function of //jcllib statement?

795






What parameters can be used to limit the number of records written to a sysout dataset?

740


Explain how can a stopped job be started again?

634


What is NOTCAT ?

734


What are some jcl statements that are not allowed in procedures?

721


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

643


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

803


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

969


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

2092


what is DSN in JCL and what are the parameters to declare the DSN?

712


What are the rules employed while naming the steps in a job?

650