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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Just correction on above answers, It will work
//JOBCARD AS PER INSTALLATION
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE = INCLUDE,STEPNAME=(STEP4,STEP3,STEP2,STEP1)
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / premadevi
//JOBCARD AS PER INSTALLATION
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
TYPE=EDIT,INCLUDE=(STEP4,STEP3,STEP2,STEP1)
/*
//
| Is This Answer Correct ? | 0 Yes | 0 No |
if we give TIME=0 how many sec that job/step
Please explain with syntax and an example, the Inrec fields and Outrec build in sort.
what do you mean by include statement in jcl?
Hi, If a catolog proc has another proc in it, both have ddnames dd1 and dd2. what proc will override if gave override parameter. Here both have same step names.
What is a Generation Data Group (GDG)?
what is alternate index?
How do you override a specific DDNAME/SYSIN in PROC from a JCL?
HOw to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)
write a jcl to execute a job by 7:00 am on jan 20,1986?
In DCB, what is LRECL,BLKSIZE,DSORG
Can we write same stepname for one or more steps in on job ?
My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP = NEW //STP4 A(+1), DISP = OLD STP3 was abended and I want restart my JCL from STP3 onwards & what are the precaution I want to take & what are the changes I need to make. Pls let me know.