Provide arguments to REXX from *REXX command in ISPF dialog



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Provide arguments to REXX from *REXX command in ISPF dialog

Postby arens » Fri Mar 18, 2011 5:52 pm

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
arens
 
Posts: 3
Joined: Fri Mar 18, 2011 5:43 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby MrSpock » Fri Mar 18, 2011 7:32 pm

The documentation shows the syntax a little differently.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

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

Postby arens » Fri Mar 18, 2011 9:15 pm

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
arens
 
Posts: 3
Joined: Fri Mar 18, 2011 5:43 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby MrSpock » Fri Mar 18, 2011 9:37 pm

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?
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post