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
Differentiate between the joblib and the steplib statements?
What is condition checking in jcl? Is this possible?
what are the various stages of job processing?
Can I send output of job to my remote device careerride123?
Can an individual step be restricted from using all the jobs allowed cpu time?
How do you create a temporary dataset?
What is the maximum length of a single line of jcl?
How can unused space allocation be returned to the system when a dataset is closed?
i want to store 20 digits . how will u do it in cobol ?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
Where & How Do You Code Identifier In Jcl?
Is it possible to left uncode disp?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
how JCL works?
Is their any limit for data sets?