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


Please Help Members By Posting Answers For Below Questions

Differentiate between the joblib and the steplib statements?

1061


What is condition checking in jcl? Is this possible?

827


what are the various stages of job processing?

974


Can I send output of job to my remote device careerride123?

872


Can an individual step be restricted from using all the jobs allowed cpu time?

1235


How do you create a temporary dataset?

849


What is the maximum length of a single line of jcl?

1033


How can unused space allocation be returned to the system when a dataset is closed?

1084


i want to store 20 digits . how will u do it in cobol ?

1087


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1884


Where & How Do You Code Identifier In Jcl?

923


Is it possible to left uncode disp?

895


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?

2431


how JCL works?

997


Is their any limit for data sets?

875