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

conditional handling in JCL


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

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Mar 02, 2009 11:30 am
Reply with quote

How to use conditional handling in JCL.

My scenario is

If a=1 then
call proc1
if a=2 then
call proc2
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 02, 2009 11:35 am
Reply with quote

Hello,

Look here in the JCL Reference manual (from the IBM Manuals link above). Start here. There is additional info on the followoing pages.
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/iea2b680/17.0?
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Mar 02, 2009 11:44 am
Reply with quote

Hi dick,

Thanks for information.

But my requirement is that i need to check the value of the variable and do the conditional branching.

// set a=1

If a=1 then
call proc1
If a=2 then
call proc2
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 02, 2009 12:04 pm
Reply with quote

Hello,

Yes - understood.

Such examples are in that link (if i understand the requirement).

There are many more pages of info for this, so you need to look at the other pages for the same topic as well.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Mar 02, 2009 4:46 pm
Reply with quote

sathish1760 wrote:
But my requirement is that i need to check the value of the variable and do the conditional branching.


JCL does NOT work that way. That can only be accomplished through a program.
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 Conditional EATTR in MFS ? IMS DB/DC 0
No new posts Conditional replace values in output ... DFSORT/ICETOOL 3
No new posts File Handling COBOL Programming 9
No new posts Handling the numeric data in unstring... COBOL Programming 18
No new posts SORT for dynamic trailer record + CSV... DFSORT/ICETOOL 14
Search our Forums:

Back to Top