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 |
What is a JCL Command statement ?
what is check pending option
If we want to see the eliminated duplicate record thru SORT, how its output file will be managed
What is the improvement to COND= in the latest version of MVS?
Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..
How to find the number of duplicates in a file using Sort?
What is the difference b/w the CLASS,TIME,PRTY in jcl job card.
can a job be submitted through jcl only? is there another way to submit a job?
There are 2PROCS in a JCL. I want following conditions to be carried out 1) 1st PROC should be executed as such In second PROC 2) First 4steps should not be executed 3) 5th step should not be executed 4) 6th and 7th step should be executed The change should be done only in the JCL and PROC should be untouched ?
What is TimeStamp, What is TimeStamp error and What is the Abend Code for TimeStamp Error ?
Max generations in GDG??
in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?