IN MY JCL I VE 8 STEPS I WANT TO EXCUTE STEP 8 FIRST THEN
EXCUTE STEP 4 ,HOW WILL EXCUTE STEP 8 BEFORE STEP 4?
Answer Posted / pradeep
Hi RaviKumar,
Your above solution is not working. It just executes both
the steps in the sequence with which it is defined in the
JCL.
I propose a syntax below to meet the requirement,
//JOBCARD
//PS010 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=path of your JCL,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(PS008)
/*
//PS020 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=path of your JCL,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(PS004)
/*
Here I have given a separate IEBEDIT to execute the same
JCL but different step exec seqeunce. As simple as that.
I would really wish if there is a much better solution to
the one that I have given here. :)
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How can a stopped job be started again?
Is their any set of rules for dd? Explain.
Is it possible to define dd statements as you want?
Explain the purpose of dd dummy statement?
What is the function of a dd statement?
how you can direct the data to spool using SYSOUT option?
Can I send output of job to my remote device careerride123?
List the various advantages of using jcl language?
how JCL works?
Explain the function of //jcllib statement?
Is it possible to code instream data in a PROC?
How can a fb file convert to vb file using sort program?
Name a few IBM utility programs, and explain its function.
How does jcl act on code(if you take a cobol program)?
What is condition checking in jcl? Is this possible?