Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use cond for this purpose?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to use cond for this purpose?
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: 8593
Location: Back in jolly old England

PostPosted: Thu Feb 18, 2010 1:35 pm    Post subject:
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: 1504
Location: Chennai

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

A google search would have done it, hope this helps,
http://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: 755
Location: Germany

PostPosted: Thu Feb 18, 2010 1:58 pm    Post subject:
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    Post subject:
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: 755
Location: Germany

PostPosted: Thu Feb 18, 2010 5:26 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm
No new posts How to detect the Job COND used tdfs JCL & VSAM 28 Tue Feb 09, 2016 8:34 pm
No new posts Repeating input records for variable ... ksouren007 DFSORT/ICETOOL 1 Fri Jul 31, 2015 4:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us