View previous topic :: View next topic
|
Author |
Message |
ManuelPacheco
New User
Joined: 22 Apr 2020 Posts: 2 Location: Portugal
|
|
|
|
Hello,
I'm tring to call a rexx from another rexx.
The exemple:
I have the execution of this REXX member1
X.A.REXX(member1)
This rexx executes a painel and when the PFKEY if pressed "F3" it goes back to the rexx an tests the RC = 8. If the RC = 8 it opens another REXX the member2.
IF RC = 8 THEN DO
ADRESS TSO
EX 'X.A.REXX(member2)'
END
How can i make this work ?
IF RC = 8 THEN DO
ADDRESS TSO
X.A.REXX(member2)
END
Do i need to create a CLIST with the PDS from the rexx that i want to open ? |
|
Back to top |
|
|
ManuelPacheco
New User
Joined: 22 Apr 2020 Posts: 2 Location: Portugal
|
|
|
|
I solve the probem!
IF RC = 8 THEN DO
CALL 'MEMBER2'
END
So easy that i need to jump from a airplane to wakeup!
I'm new with rexx, but this is the basic for the basics !!
Thank tou anyway |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2023 Location: USA
|
|
|
|
RTFM:
TSO/E REXX Reference wrote: |
Example:
/* Function is called by FRED( ’data X’, 1, 5 ) */
Fred: Arg string, num1, num2
/* Now: STRING contains ’DATA X’ */
/* NUM1 contains ’1’ */
/* NUM2 contains ’5’ */ |
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
This should have worked:
Code: |
IF RC = 8 THEN DO
ADRESS TSO
EX 'X.A.REXX(member2)'
END
|
But you misspelled ADDRESS. And I think any host command should be enclosed in quotes. |
|
Back to top |
|
|
|