Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If a job has 3 steps and step 1 and step 3 should get
executed and step 2 should not get executed irrespective of
the return code from the previous steps. How can it be done?

Answer Posted / rameshkillampalli

Small correction - stepname=(step2) will allow job to run
step1 and step3 and exclude step2 from execution

//XXXXXXXX JOB (XXX),'XXXXXXXXXXXXXXXXX',MSGLEVEL=(1,1),
// CLASS=D,PRTY=5,MSGCLASS=T,NOTIFY=&SYSUID
//STEP01 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXXXXXX.XXXX.XXXX(MEMBER NAME),DISP=SHR

//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP2)
/*

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can the attributes of one sms dataset be copied to another dataset?

1209


Name the parameters which can be used to limit the number of records written to a sysout dataset?

1146


How to pass data to a program that is coded in an exec statement?

1329


Explain how can return codes be tested before execution of a job step?

1319


What is catelog procedure and how many catelog procedure to use in one job?

8679


what JCL Procedures?

1247


How to submit a jcl from cics?

1146


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

1137


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

1209


how to compare two datasets without using superce because output is limited to 133 bytes

2103


What is the purpose of the dd keylen parameter?

1211


What are the rules employed while naming the steps in a job?

1139


what is DSN in JCL and what are the parameters to declare the DSN?

1188


Explain about ISPF/TSO Commands

1939


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

1548