Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing Parameter to REXX batch step

529 views
Skip to first unread message

Yogev Feldman

unread,
Jun 21, 1999, 3:00:00 AM6/21/99
to
Hi,
I would like to pass parameter like , name of compiling program ,
to REXX batch step.
I need to know how to 'catch' JCL parameters/variables from the previous
step,
in REXX routine.

It's my first REXX in MVS environment.
Thanks
Yogev
ELAL AIrlines

Andreas Baldauf

unread,
Jun 21, 1999, 3:00:00 AM6/21/99
to
You can pass parameters to a REXX procedure via the EXEC PARM statement.
The REXX procedure can retrieve the the argument strings with the PARSE ARG
instruction.

Andreas Baldauf

Example:

JCL:
file://REXXTEST EXEC PGM=IKJEFT01,
// PARM='REXXTEST arg1 ARG2'
file://SYSEXEC DD DSN=execlib,DISP=SHR
file://SYSTSPRT DD SYSOUT=*
file://SYSTSIN DD *
/*

REXX:
/* REXX */
parse arg parm1 parm2
say parm1 parm2

Output:
arg1 ARG2
READY
END

Yogev Feldman <yog...@elal.co.il> schrieb in im Newsbeitrag:
376e5f47....@news.netvision.net.il...

0 new messages