Page 1 of 1

Provide arguments to REXX from *REXX command in ISPF dialog

PostPosted: Fri Mar 18, 2011 5:52 pm
by arens
Hi all,

I'm currently writing an ISPF dialog and I want to call a REXX in there. For this, I am using the *REXX command as follows
*REXX(*,(REXXFUNC))

My REXX starts with
/* REXX */
ARG PARM1 PARM2

Now the question. How can I use *REXX to call REXXFUNC with two parameters? E.g.:
*REXX(*,(REXXFUNC P1 P2))

But this doesn't work.

Any help is appreciated.

Regards,
arens

Re: Provide arguments to REXX from *REXX command in ISPF dia

PostPosted: Fri Mar 18, 2011 7:32 pm
by MrSpock
The documentation shows the syntax a little differently.

Re: Provide arguments to REXX from *REXX command in ISPF dia

PostPosted: Fri Mar 18, 2011 9:15 pm
by arens
Hi,

thanks for your reply. However, I don't get what you mean. This is the syntax I already saw in the PDF version. Maybe I'm too blind ;) . Could you please tell what you mean with "shows the syntax a little differently."

The third sample I showed is what I hoped to have but what is not available according to the syntax diagram. But maybe there is another way to pass parameters to the REXX.

Regards,
arens

Re: Provide arguments to REXX from *REXX command in ISPF dia

PostPosted: Fri Mar 18, 2011 9:37 pm
by MrSpock
According to that diagram, the names of the dialog variables come first, then the member name, i.e.:

*REXX(P1,P2,(REXXFUNC))

Anyway, isn't there an ISPF Edit Model that you can use to show the correct syntax?