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
 
attchmvs from rexx subroutine that returns values

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

New User


Joined: 14 Jun 2005
Posts: 62

PostPosted: Fri Jan 19, 2018 5:29 am    Post subject: attchmvs from rexx subroutine that returns values
Reply with quote

Is it not allowed to run attchmvs / linkmvs from rexx subroutines that return values ? I had return statements at the end out subroutines and the attchmvs was failing with RC = -2. When I remove the returns they work.
Back to top
View user's profile Send private message

Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 340
Location: Denmark

PostPosted: Fri Jan 19, 2018 1:06 pm    Post subject:
Reply with quote

It is allowed. Actually if your call is a function ( n=subr() ) then the subroutine must use RETURN or EXIT with a value.
Please show us what is not working. Remember code tags.
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 Rexx STRIP Equivalent function in CLIST upendrasri CLIST & REXX 5 Mon Mar 16, 2020 9:57 pm
No new posts Execute DSNTEP2 in REXX which is call... sushanth bobby CLIST & REXX 4 Wed Mar 04, 2020 3:27 pm
No new posts z/OS Web enablement toolkit - Rexx tr... sushanth bobby All Other Mainframe Topics 3 Thu Jan 30, 2020 11:37 am
No new posts Not able to view the values of variab... sattar_engg CA Products 1 Thu Jan 23, 2020 12:32 pm
No new posts Need information on creating dynamic ... grvdeshmukh0 CLIST & REXX 8 Thu Jan 16, 2020 1:55 pm

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