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 exec from another REXx exec

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


Joined: 12 Dec 2002
Posts: 26
Topics: 16

PostPosted: Thu Jul 31, 2003 5:15 am    Post subject: Call a REXX exec from another REXx exec Reply with quote

Hi Team,
Can we call a REXX exec from another REXX exec?

Here are 2 simple codes:

CODE1

/** REXX **/
SAY 'I AM IN PROGRM ONE'
ADDRESS TSO "TSOEXEC CALL 'PQ00.LMS.UAGARS1.L0EXELIB(EXPOS02)'"
SAY 'I AM BACK IN PROGRAM ONE'


CODE2

/** REXX **/
SAY 'I AM IN PROGRAM 2'
RETURN


The error that I got was :

I AM IN PROGRM ONE,
CALL ENDED DUE TO ERROR+,
SYSTEM ABEND CODE 806 REASON CODE 0004,
3 *-* ADDRESS TSO "TSOEXEC CALL 'PQ00.LMS.UAGARS1.L0EXELIB(EXPOS02)'",
+++ RC(-4095) +++,
I AM BACK IN PROGRAM ONE,

Please help
Thanks
Back to top
View user's profile Send private message Send e-mail
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Thu Jul 31, 2003 7:19 am    Post subject: Reply with quote

Did you put both code1 and code2 in the same pds ?
The PDS should be concatenated to SYSEXEC/SYSPROC

Hope this helps...

Cheers,
Coolman.
________
Falcon


Last edited by coolman on Sat Feb 05, 2011 1:25 am; edited 1 time in total
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Thu Jul 31, 2003 7:50 am    Post subject: Reply with quote

Hi

Try
Code:
ADDRESS TSO "EXEC 'your.pds(rexx_member)'"


O.
________
The Championship by Lexus


Last edited by ofer71 on Sat Feb 05, 2011 11:00 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Thu Jul 31, 2003 4:58 pm    Post subject: Reply with quote

If you're in ISPF, you could also try:

Code:

address ispexec "SELECT CMD(%rexx_member)"

_________________
The day you stop learning the dinosaur becomes extinct
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