superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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
|
|
|