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

passing values to REXX from JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
axmohan

New User


Joined: 20 Mar 2006
Posts: 1
Location: Chennai, India

PostPosted: Fri Jun 16, 2006 8:36 pm
Reply with quote

I need to pass some values to the REXX source code from the JCL. How can this be done?
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 Jun 16, 2006 10:13 pm
Reply with quote

As with any program, they're passed via the PARM= JCL statement, or read from an input DD statement, or from the console (terminal).

Code:

//* PASSED AS ARGUMENTS
//STEPX EXEC PGM=IKJEFT01,PARM='REXXEXEC PARM1 PARM2 PARM3'
//SYSPROC DD DISP=SHR,DSN=MY.REXX

or

//STEPX EXEC PGM=IKJEFT01
//SYSTSIN DD *
EX 'MY.REXX(REXXEXEC)' 'PARM1 PARM2 PARM3'
/*


Code:

//* PASSED VIA SYSIN AS 'PULL' STATEMENTS
//STEPX EXEC PGM=IKJEFT01,PARM='REXXEXEC'
//SYSPROC DD DISP=SHR,DSN=MY.REXX
//SYSTSIN DD *
PARM1
PARM2
PARM3
/*


Code:

//* PASSED VIA DD AS A 'READ'
//STEPX EXEC PGM=IKJEFT01,PARM='REXXEXEC'
//SYSPROC DD DISP=SHR,DSN=MY.REXX
//PARMS DD DISP=SHR,DSN=MY.PARMLIB
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top