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
Explain the function of the dd dcb keyword?
Can an individual step be restricted from using all the jobs allowed cpu time?
What is job control language?
In job processing, what happens in execution stage?
in ways data can be passed to a COBOL program from JCL?
How does jcl act on a cobol code?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
Explain the purpose of dd * statement in jcl?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
What do you understand by jcl?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
What is the function of the steplib dd statement?
What do you understand by the term job time – out and how can you overcome that?
What is the purpose of dd?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?