How to execute step2,step5,step7 of a proc of 10 steps?
You are not allowed to change in JCL.
Answers were Sorted based on User's Feedback
Answer / muttiah
@Adarsh:
That will be useful when we want to copy steps from a JCL
directly, not from a PROC.
@ NaliniNayak:
Using restart you can point to step2 of a proc as below.
//RESTART=PROCSTEP.STEP2 in the job card.
Code Cond=(0,LE) for all the steps you want to skip..Say in
our case it's 3,4,6,8 and 9th step in proc.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
which parameter is used to check the syntax of a jcl without executing it?
Hi, can we call catalog( say myproc } proc n times in jcl if so how please explain Thanks in advance
If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?
can we give instream data in procedure
I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.
What you mean by skeleton JCl?
Do we need to code DCB parameters when using DISP position as MOD?
I have a dataset with record length 40 in production, due to some requirements it was changed to 80. Then how can we know the jobs which are effected by this change and how can we resolve it.
How do you find which GDG is using which dataset?
what is use of disp parameter in dd statement?
what is JCL?