I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4.
Can it possible to run the reverse order like step4 first
then step3,step2,step1?
Answer Posted / muttaiah
JCL processes steps sequentially i mean to say we have ways
to skip steps but we don't have a way to run steps in
reverse or random way. EX; i have a job with steps 1, 2, 3.
Executing steps 3, 1, 2 is not at all possible.
If you want to do so then you have to write a new JCL with
IEBEDIT utility. Here is the JCL.
//JOBCARD AS PER INSTALLATION
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
TYPE=INCLUDE,STEPS=(STEP4,STEP3,STEP2,STEP1)
/*
//
Here file1 can either be PDS/PS that holds the actual JCL.
Type=Include will copy the steps specified in the sequence
as per STEPS parm
In real time there won't be any scenario as such..If any
interviewer asks this question then blast him with this
answer. Tell him not to waste your time by such questions
| Is This Answer Correct ? | 44 Yes | 2 No |
Post New Answer View All Answers
what are the statements that are not valid to be included in an include statement?
How to do automated restart when a job abend?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
how do you access an uncataloged dataset in a jcl?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Explain the jcl exec statement?
a dd statement has 2 types of parameters. Name them?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What is multithreading in jcl?
Is their any set of rules for dd? Explain.
What is the function of the dd dcb keyword?
In sms datasets, what is the function of the dd mgmtclas keyword?
what is the purpose of coding class parameter in job statement?
What is NOTCAT ?
Why include statement is used in a jcl?