Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

passing values to REXX from JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: passing values to REXX from JCL
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

Moderator Team Head


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

PostPosted: Fri Jun 16, 2006 10:13 pm    Post subject: Re: passing values to REXX from JCL
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 10 Thu May 25, 2017 3:49 pm
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us