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

Using symbolic parameter in IF THEN ELSE


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

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Thu Mar 13, 2008 8:36 pm
Reply with quote

Hi,

This may be silly, but I would like to know whether we can use check symbolic paramter values in the place of KEYWORD in an IF THEN ELSE construct in JCL
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Mar 13, 2008 8:39 pm
Reply with quote

No.

I mean, you can use a typical symbolic parameter:

Code:

//*
// SET CHECK=EQ
// SET VALIDRC=2
//*
//STEPX EXEC PGM=PGMX
//*
// IF (STEPX.RC &CHECK &VALIDRC) THEN
//STEPY EXEC PGM=PGMY
// ENDIF
Back to top
View user's profile Send private message
abin

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Thu Mar 13, 2008 10:06 pm
Reply with quote

Thanks Kevin. Some times I crave for unneccessary things. I will satisfy the requirement using COND code overriding from JCL.
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top