Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Calling a Rexx from within another Rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ManuelPacheco

New User


Joined: 22 Apr 2020
Posts: 2
Location: Portugal

PostPosted: Wed Apr 22, 2020 2:45 pm    Post subject: Calling a Rexx from within another Rexx
Reply with quote

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
View user's profile Send private message

ManuelPacheco

New User


Joined: 22 Apr 2020
Posts: 2
Location: Portugal

PostPosted: Wed Apr 22, 2020 2:55 pm    Post subject: Reply to: Calling a Rexx from within another Rexx
Reply with quote

I solve the probem!

IF RC = 8 THEN DO
CALL 'MEMBER2'
END



So easy that i need to jump from a airplane to wakeup! icon_biggrin.gif

I'm new with rexx, but this is the basic for the basics !!


Thank tou anyway icon_biggrin.gif
Back to top
View user's profile Send private message
sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 778
Location: Maryland

PostPosted: Wed Apr 22, 2020 7:18 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2187
Location: Silicon Valley

PostPosted: Fri Apr 24, 2020 6:47 am    Post subject: Reply to: Calling a Rexx from within another Rexx
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to open a DSN using REXX & e... Y Marwaha CLIST & REXX 8 Fri Jun 05, 2020 7:30 pm
No new posts Execute Partially Edited Rexx Exec fr... AllenSieracki CLIST & REXX 14 Tue Jun 02, 2020 7:56 pm
No new posts Compare multiple files using JCL/Rexx... tanvi110788 JCL & VSAM 4 Tue May 19, 2020 5:47 pm
No new posts In JCL Procedure how we can execute R... Dhananjayulu Neeli CLIST & REXX 7 Sat May 16, 2020 12:01 am
No new posts Naming a newly opened screen using REXX Ben12345 CLIST & REXX 2 Fri Apr 17, 2020 5:48 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us