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: 66

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 User


Joined: 01 Sep 2015
Posts: 495
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to modify file content using REXX CLIST & REXX 3
No new posts Same command as on commandline in REX... TSO/ISPF 6
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts How to move values from single dimens... COBOL Programming 1
No new posts check if two PD values are equal, no ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top