MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Call a REXX from another REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
JOHNCWL
Beginner


Joined: 25 Feb 2004
Posts: 31
Topics: 16

PostPosted: Wed Apr 07, 2004 9:54 am    Post subject: Call a REXX from another REXX Reply with quote

HI,

This is a very silly ques>..
I would like to know how to call a REXX pgm from another rexx pgm

For ex:

JOHN.REXX.SAMP is a PDS with members (test1,test2 and test3)

Now Test1 should call test2 and then test3


Regds
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Apr 07, 2004 10:10 am    Post subject: Reply with quote

By name:

for example:

TEST1:
Code:

/* REXX */
Parse Source . . name .
Say name
"%TEST2"
Exit 0

TEST2:
Code:

/* REXX */
Parse Source . . name .
Say name
Exit 0

If you start the process by entering:

%TEST1

You will see:

TEST1
TEST2
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group