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
 
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: 4650
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

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