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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

829


Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:

3530


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

608


When space is allocated for an output dataset, what units can be used?

751


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

679






Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

761


What is the function of the dd dcb keyword?

824


In sms datasets, what is the function of the dd avgrec keyword?

652


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

666


Why block size is multiple of lrecl in jcl?

915


Is their any set of rules for dd? Explain.

662


what are the various stages of job processing?

738


Differentiate between the joblib and the steplib statements?

859


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

657


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

619