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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm


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