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 

CREX: Calling subroutines in compiled 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
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Thu Dec 08, 2005 9:56 am    Post subject: CREX: Calling subroutines in compiled REXX Reply with quote

Hi,
Is there an issue while calling a compiled REXX program from another compiled REXX program using the TSO CALL method?

The caller (named CALLER):
Code:

/***rexx***/                       
say 'Hi! I am the caller.'         
say 'I will call the callee now.' 
"call 'MY.RXLOAD(CALLEE)' PASSENVB"
exit                               


The callee (named CALLEE):
Code:

/***rexx***/             
address tso               
say 'Hi! I am the callee.'
return                   


When I execute CALLER in batch using EXEC PGM=CALLER, I do not see the SAY from CALLEE.

After some research, I found that, the calling program need to call the called program just as in case of uncompiled REXX. That is,

The caller (named CALLER):
Code:

/***rexx***/                     
say 'Hi! I am the caller.'       
say 'I will call the callee now.'
call callee                     
exit                             


The above code actually called CALLEE and SYSTSPRT had all the outputs.

Note: There was no difference with and without PASSENVB option in the CALL statement in my first attempt.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
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