Portal | 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: 825
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

Global Moderator


Joined: 01 Sep 2006
Posts: 2205
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 TWS PIF (EQQYCOM) Rexx - Occurrence S... Richard Baker IBM Tools 0 Wed Sep 16, 2020 10:45 am
No new posts Call Natural program with rexx shahaf CLIST & REXX 2 Tue Sep 08, 2020 11:22 am
No new posts CA Sysview - JCL or Rexx - Read or Ex... Jasi CA Products 4 Wed Aug 05, 2020 9:19 pm
This topic is locked: you cannot edit posts or make replies. Invoke REXX thru JCL to expand the co... spizen556 CLIST & REXX 2 Sun Jul 26, 2020 3:53 pm
No new posts Unable to scroll in REXX panel KeshavKunal CLIST & REXX 4 Tue Jul 21, 2020 3:55 pm

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