> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dean Montevago
> Sent: Thursday, December 15, 2005 8:43 AM
> To: [email protected]
> Subject: COND= on an EXEC Statement
> 
> 
> > Hi,
> > 
> > I'm looking at the JCL manual and I'm not clear as to what's written
> > on this topic. If I have the following:
> > 
> > //STEP1  EXEC PROC1
> > //*
> > //STEP2 EXEC PROC2
> > 
> > Proc 2 contains multiple steps with COND='s on the EXEC steps. If I
> > add a COND=(0,NE) to the statement that calls PROC2 will 
> this override
> > the COND='s on the individual steps in PROC2 ? Basically what I want
> > to do is flush the job if the first proc doesn't complete with a
> > condition code of zero.
> > 
> > TIA
> > Dean
> > 
> > Dean Montevago
> > Sr. Systems Specialist

If that is what you want, then do it the simple way:

//STEP1 EXEC PROC1
// IF RC=0 THEN
//STEP2 EXEC PROC2
// ENDIF

--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its'
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.
 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to