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?

Answers were Sorted based on User's Feedback



If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed i..

Answer / mr. cooooool

Hi..........
We can use condition parameter for step2.
//JOBCARD
//STEP1 EXEC=PGM1
//STEP2 EXEC=PGM2,COND=(0,LE,STEP1)
//STEP3 EXEC=PGM3
//

THANKS

Is This Answer Correct ?    30 Yes 3 No

If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed i..

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

If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed i..

Answer / guest

abnormal termination

Is This Answer Correct ?    0 Yes 1 No

If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed i..

Answer / rsivar13@gmail.com

In case of Abnormal Termination
Use Restart Parameter for Step2 In Job Card.
And Give condition code for Step3.


Thanks.

Is This Answer Correct ?    0 Yes 1 No

If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed i..

Answer / ramesh

Use IEBEDIT to skip step 2 and execute step1 and step3 as below
//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=(STEP01,STEP05)
/*

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

0 Answers  


In which table PLAN is registered in ?

3 Answers  


How gdg are concatenated?

0 Answers  


What is job control language?

0 Answers  


How to empty the records in jcl

1 Answers  


In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?

3 Answers  


mainframe questions like basic&depth

0 Answers   TetraSoft,


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

0 Answers  


How is a dataset passed from one step to another?

2 Answers   DELL,


What are isolation levels? Where do we need to specify them in compiling JCL?

3 Answers  


what is symbolic parameters in jcl, what is a temparary data set ? where do u use ?

2 Answers   Verizon,


Explain about LMMFIND - find a library member

1 Answers  


Categories