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

Using symbolic parameters in IF statement in a PROC


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

New User


Joined: 22 May 2005
Posts: 8

PostPosted: Fri Sep 26, 2008 1:25 am
Reply with quote

Hello,

I m looking for a way in which i could use the symbolic parameters in the IF statement in a PROC.

Scenario : I have a proc being referred by many JCLs and the JCL passes some specific values to the PROC. I need to have some specific steps in the PROC which should be invoked only when it is triggered by a specific 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: Fri Sep 26, 2008 2:04 am
Reply with quote

17.0 Chapter 17. IF/THEN/ELSE/ENDIF Statement Construct.

The IF/THEN/ELSE construct is based on an evaluation of one of the following keywords ONLY:

Quote:

The following keywords are the only keywords supported by IBM and recommended for use in relational-expressions. Any other keywords, even if accepted by the system, are not intended or supported keywords.

RC
ABEND
ABENDCC
RUN


So, pass your variables into a program, have that program evaluate their content, and set a Return-Code value as needed to direct the flow of your job.
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 Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
Search our Forums:

Back to Top