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

How to use cond for this purpose?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MALLIKARJUN.KUMMITHA
Warnings : 1

New User


Joined: 25 Oct 2007
Posts: 7
Location: india

PostPosted: Thu Feb 18, 2010 12:56 pm
Reply with quote

HAI,
PLS GIVE ME REPLY I HAVE 3 STEPS

IF STEP1 RETURN CODE =00(SUCCESSFULLY) EXECUTE STEPEP3
ELSE
STEP1 RETRUN CODE NOTE EQULAL TO 00(UNSUCCESSFULLY) EXECUTE STEP2



STEP1
STEP2
STEP3





STEP1,COND=(04,LE,STEP3)
STEP2,COND=ONLY
STEP3

IS IT CORRECT PLS SOME ONE GUIDE ME IF IT'S WRONG?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Feb 18, 2010 1:35 pm
Reply with quote

1) DO NOT post in all upper case. This is deemed as being rude !

2) Click the "IBM Manuals" button at the top of the page and find the z/OS JCL reference manual.

3) Read the relevant section and feel free to come back and discuss any problems you then have.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Feb 18, 2010 1:55 pm
Reply with quote

A google search would have done it, hope this helps,
teaching.idallen.com/dat2330/01f/jclnotes/conditionCodes.txt
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Feb 18, 2010 1:58 pm
Reply with quote

@MALLIKARJUN.KUMMITHA

Morning Sir !

Please read about the IF statement in Job Control Language.
So you don't need thesse unreadable COND terms any more.
Back to top
View user's profile Send private message
seagull

New User


Joined: 28 May 2007
Posts: 24
Location: Dublin

PostPosted: Thu Feb 18, 2010 4:11 pm
Reply with quote

UmeySan wrote:
@MALLIKARJUN.KUMMITHA

Morning Sir !

Please read about the IF statement in Job Control Language.
So you don't need thesse unreadable COND terms any more.


Have you ever tried to restart a job that's gone down in a step that's in an IF statement? I would suggest you learn to read COND statements so that you can control your jobs more accurately, and restart them.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Feb 18, 2010 5:26 pm
Reply with quote

@ seagull

Laa maith agat !

No, never did this and hope never will do this.
I use OPC with DBRC and automatic restart-feature.

I think in 2010 every reasonable shop has a sheduling system to start and manage there batch-jcl.

But Sir, your right, it does no harm to read about older techniques to knew how to handle them in case of doubt.

But i also wanted the OP to read about new techniques and not to copy anything.

Restart was not mentioned in his question.

Beannachd leat!
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
No new posts INCLUDE COND with WHEN=GROUP SYNCSORT 12
Search our Forums:

Back to Top