Bill,

Rexx is a procedural language. Calls to a subroutine that end with a RETURN
statement will always branch back to the calling routine. Rexx has the
SIGNAL statement that behaves like a GOTO, but it is mostly intended to be
used for error handling. If you want the program to terminate after calling
the subroutine, replace the RETURN statement with EXIT(0).



Thank you,

Brian Chapman


On Mon, Sep 30, 2019 at 9:38 AM Bill Giannelli <[email protected]>
wrote:

> I am still learning Rexx. Can someone give a simple example of 1) calling
> a routine and returning. 2) branching to a routine without returning.
> I have a SELECT statement and from the last where clause I want to branch
> to a routine without returning. But it keeps returning and falling thru the
> end of the SELECT statement.
> thanks
> Bill
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

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

Reply via email to