GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 65 of 128    Print  
How do you skip a job and run step 1 and step3 ?
A job has 3 steps by name step1, step2, step3.

if i don't want to execute step2, what i have to do.



  
Total Answers and Comments: 3 Last Update: September 01, 2008     Asked by: yanamadala.hvsprao 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 13, 2007 11:19:05   #1  
kanchhana Member Since: February 2007   Contribution: 14    

RE: How do you skip a job and run step 1 and step3 ?
simple. can use COND parameter on step2.

Ex: COND (0 eq) on step2 will check if condition code returned by step 1 is equal to 0. If so then step2 will be bypassed and step 3 will be executed. if not equal then step 2 will be executed.

H/ever in ur prg. step 1 will return cc 0 so step 2 will be skipped.

 
Is this answer useful? Yes | No
June 16, 2008 04:46:25   #2  
sai mainframes Member Since: November 2007   Contribution: 13    

RE: How do you skip a job and run step 1 and step3 ?

Hi

u have to give condition code at step 2.

Condition code given by previous person is correct and also some times it may go wrong.

for example if step i give a condition code of 1(for serach jobs)...or 4(some error)...then second step will execute.

for this we have to give a condtion which will never fails like COND (0.LE).
it means what ever it may be the coide given by step one is always Greater than or equal to zero.

or u can code COND (4096 GE)

u can revert me incase of any issues.

Regards
jinka.saikrishna@gmail.com


 
Is this answer useful? Yes | No
September 01, 2008 01:57:14   #3  
prasenjit_in Member Since: April 2008   Contribution: 18    

RE: How do you skip a job and run step 1 and step3 ?
Use COND ONLY in step 2 so that only if step 1 fails then step 2 will be executed otherwise it will bypass step2 and move to step3.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape