IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

attchmvs from rexx subroutine that returns values


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harisukumaran

New User


Joined: 14 Jun 2005
Posts: 75

PostPosted: Fri Jan 19, 2018 5:29 am
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 Member


Joined: 01 Sep 2015
Posts: 774
Location: Denmark

PostPosted: Fri Jan 19, 2018 1:06 pm
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 All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Instream REXX? JCL & VSAM 13
No new posts CEMT using Rexx? Help please CLIST & REXX 3
No new posts get submitted JCL from SDSF with REXX... CLIST & REXX 2
No new posts Rexx to read current Panvalet editor/... CLIST & REXX 0
Search our Forums:


Back to Top