1, 2019 11:38 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
In most languages a coding error of
Foo [some syntactic element inadvertently omitted here] Bar
Is a syntax error. For example, in C, x = foo bar; /* supposed to be foo +
bar */
But in Rexx, Foo Bar is
List on behalf of
Frank Swarbrick
Sent: Monday, September 30, 2019 7:24 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
I just wanted to bring up a "gotcha" when passing more than one "parameter". I
believe with the example you give below, you are c
arc-requ...@listserv.ua.edu>
Sent: Monday, September 30, 2019 3:28 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
On Mon, 30 Sep 2019 13:48:11 -0500, Bill Giannelli wrote:
>My statement is as follows:
>SELECT
> WHEN ssid = "" THEN grp = "ZZZ
ason.gmu.edu/~smetz3
From: IBM Mainframe Discussion List on behalf of
Bill Giannelli
Sent: Monday, September 30, 2019 2:48 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
My statement is as follows:
SELECT
WHEN ssid = "" THE
September 30, 2019 10:10 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
Thank you very much for your response.
I also have a Rexx routine that has "call code 0" and call code 0 100"
which seems to branch to a routine "code" for error handli
wo'.
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
From: IBM Mainframe Discussion List on behalf of
Lionel B Dyck
Sent: Monday, September 30, 2019 10:13 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
The 'CA
metz3
From: IBM Mainframe Discussion List on behalf of
Brian Chapman
Sent: Monday, September 30, 2019 9:54 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
Bill,
Rexx is a procedural language. Calls to a subroutine that end with a RETURN
statement will always branch back t
REXX does not have a goto statement. You will sometimes read that SIGNAL is a
goto; that's not only wrong but dangerous for those who believe it.
The EXIT statement can be used by an internal routine to terminate the entire
program containing it, but not the caller of that program. See also LEAV
27;s feature is another person's trap for the unwary.
Charles
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Phil Smith III
Sent: Monday, September 30, 2019 8:21 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branch
Frank Swarbrick wrote about passing parameters.
Yes, exactly correct. And not really surprising when you think about it, but it
could indeed bite a newbie!
--
For IBM-MAIN subscribe / signoff / archive access instructions,
sen
this is correct, and helps REXX newbies. I don't claim to be any sort of
REXX expert, but I ran in to this in the only "real life" REXX program I've
ever written (as opposed to "toy" programs). If its not correct, then someone
please correct it!
Frank
Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of Bill Giannelli
Sent: Monday, September 30, 2019 11:48 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
My statement is as follows:
SELECT
WHEN ssid = "
On Mon, 30 Sep 2019 13:48:11 -0500, Bill Giannelli wrote:
>My statement is as follows:
>SELECT
> WHEN ssid = "" THEN grp = ""
>
> WHEN ssid = " " THEN say 'subsystem not entered';
> call c
My statement is as follows:
SELECT
WHEN ssid = "" THEN grp = ""
WHEN ssid = " " THEN say 'subsystem not entered';
call code
OTHERWISE
On Mon, 30 Sep 2019 08:28:27 -0500, Bill Giannelli 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 wit
Website: http://www.lbdsoftware.com
>
> "Worry more about your character than your reputation. Character is what
> you are, reputation merely what others think you are." - John Wooden
>
> -Original Message-
> From: IBM Mainframe Discussion List On Behalf
>
Bill Giannelli asked:
>I also have a Rexx routine that has "call code 0" and call code 0 100"
>which seems to branch to a routine "code" for error handling?
>how are the 0 and 100 values processed?
Lionel (correctly, of course) noted that there's nothing special about this.
I'd add that thi
; - John Wooden
-Original Message-
From: IBM Mainframe Discussion List On Behalf Of
Bill Giannelli
Sent: Monday, September 30, 2019 9:10 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx calls versus branching
Thank you very much for your response.
I also have a Rexx routine that has "ca
Thank you very much for your response.
I also have a Rexx routine that has "call code 0" and call code 0 100"
which seems to branch to a routine "code" for error handling?
how are the 0 and 100 values processed?
thanks
Bill
--
For
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 ca
20 matches
Mail list logo