- Joined
- Jan 29, 2021
- RedCents
- 193¢
Looked around ... didn't see any clear examples or other questions about this subject, so here goes ..
I don't seem to have any issues with subroutines returning int or string type variables and picking up the result in the calling macro with ${Macro.Return}
I have not been successful yet trying the same thing with arrays or MQ2Collections types. I am beginning to think it's not possible.
Is it possible for a subroutine to return an array?
Is it possible for a subroutine to return a list (or set or map) from (MQ2Collections)?
Maybe people are avoiding returns and just using outer scoped variables for passing implicitly passing information between macro and subroutine?
I don't seem to have any issues with subroutines returning int or string type variables and picking up the result in the calling macro with ${Macro.Return}
I have not been successful yet trying the same thing with arrays or MQ2Collections types. I am beginning to think it's not possible.
Is it possible for a subroutine to return an array?
Is it possible for a subroutine to return a list (or set or map) from (MQ2Collections)?
Maybe people are avoiding returns and just using outer scoped variables for passing implicitly passing information between macro and subroutine?

