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?
Answers were Sorted based on User's Feedback
Answer / ravikumar. r
You can IEBEDIT utility for your requirement. The syntax as
follows.
Syntax:
//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,PS004)
/*
| Is This Answer Correct ? | 26 Yes | 5 No |
Answer / manish_cics
through DPRTY w'll excute step 8 before step 4 ,if u
provide step 8 higher prty compared to the step 4,then it
is possible to execute step 8 first.
Guys if I am wrong plz correct me
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / pradip
I propose a syntax below to meet the requirement,
excute first STEP008 then excute STEP004
//JOBCARD
//STEP001 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=(STEP008)
/*
//*
//STEP002 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=(STEP004)
/*
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
Answer / muttaiah
@ Loga: If we use your option then we have to restart the
same job Twice to achieve this.
@ Pradip: Generally we won't be having that much time to
write a JCl with 2 steps and check the execution
If anyone can provide a simple solution that would be
better.
Sorry if you guys feel hurt but it's true!!!
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / loga
code restart parameter in jobcard as below.
JOBNAME JOB ,,MSGCLASS=***,NOTIFY=***,
RESTART=STEP8,COND(0,LE)
- only step 8 will execute
then change the jobcard with RESTART=STEP4,COND(0,LE)
- only step 4 wil be executed.
| Is This Answer Correct ? | 3 Yes | 6 No |
What is JOBLIB ?
what is XSUM in some fields= none, xsum ??
Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?
Explain the function of //jcllib statement?
how are instream data terminated?
I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?
what is alternate index?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
Explain about ISPF/TSO Commands
What are some jcl statements that are not allowed in procedures?
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3
How many parameters are there to a DISP statement and what are their uses ?