On Tue, 29 Mar 2016 12:38:05 +1100, Wayne Bickerdike wrote:

>I would use CALL. Implies that you want to return to the caller. Works in
>all environments.
> 
And the search order is different in each.

>Most of my REXX code can then be ported to REXX/CICS without major
>rewrites.
>
>Another plus of CALL is that the called routine can be internal or external
>to the mainline code.
> 
Internal gives you some funky variable scoping.

And CALL lets you return arbitrary strings, not merely integers.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to