IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Restarting jobs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shubh

New User


Joined: 01 Oct 2007
Posts: 16
Location: USA

PostPosted: Wed Jan 09, 2008 2:06 am
Reply with quote

Hi,

what does COND=(0,LT) means?
In every job i can see, it is used in every step.

//STEP0010 EXEC PGM=BTQMAIN,COND=(0,LT)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DSN=FDCK.PROD.TERADATA.APP.PARMLIB(FDCKBTHB),
// DISP=SHR
// DD DSN=FDCK.PROD.TERADATA.APP.PARMLIB(CKSDBASE),
// DISP=SHR
// DD DSN=FDCK.PROD.TERADATA.APP.PARMLIB(CKSV14WK),
// DISP=SHR
// DD DSN=FDCK.PROD.TERADATA.APP.PARMLIB(QUIT),
// DISP=SHR
//*

Also starting of every job #SCC,COND=(0,NE,*) is written.

If a job fails at any step can i just restart it from abended step or i have to restart it form one step before(because of the condition quotes.)?

Also if i restart it from abended step will the triggers work correctly?
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Jan 09, 2008 3:01 am
Reply with quote

A COND on the job card will over-ride all of the CONDs on the steps.
I prefer to use the IF ELSE END-IF structure to check COND because it is easier to read and understand. We are not allowed to put COND on the steps in this shop because they are hard to understand.

If the COND does not specifically use a step name you are restarting after, the COND will not affect where to restart the job.

There many other things to look at to determine what step to restart in such as dataset disp, GDGs, etc.

COND=(0,LT) on a step would mean that if zero is less than the condition code of any prior step than this step will not run. (If it is true you are through) In other words if any prior step ends with a condition code greater than zero you will not execute the step.

I hope this helps.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jan 09, 2008 11:33 am
Reply with quote

Quote:
Also starting of every job #SCC,COND=(0,NE,*) is written.

Invokes CA7 internal condition code checking.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top