Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
conditional handling in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: conditional handling in JCL
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

Site Director


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

PostPosted: Mon Mar 02, 2009 11:35 am    Post subject:
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.
http://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    Post subject: Reply to: conditional handling in JCL
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

Site Director


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

PostPosted: Mon Mar 02, 2009 12:04 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Mar 02, 2009 4:46 pm    Post subject: Re: Reply to: conditional handling in JCL
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    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 Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts ON ERROR handling soundarr PL/I & Assembler 2 Wed May 11, 2016 3:37 am
No new posts Exception Handling in Native Stored P... Mariraj DB2 1 Thu Feb 25, 2016 4:08 am
No new posts Help needed in Conditional statement ... vinu78 DB2 5 Tue Sep 15, 2015 10:14 am
No new posts Handling Rexx Abend trushant.w CLIST & REXX 3 Thu Jan 08, 2015 6:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us