Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Seymour J Metz
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

Re: Rexx calls versus branching

2019-10-01 Thread Charles Mills
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

Re: Rexx calls versus branching

2019-09-30 Thread Phil Smith III
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

Re: Rexx calls versus branching

2019-09-30 Thread Frank Swarbrick
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

Re: Rexx calls versus branching

2019-09-30 Thread Charles Mills
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 = "

Re: Rexx calls versus branching

2019-09-30 Thread Paul Gilmartin
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

Re: Rexx calls versus branching

2019-09-30 Thread Bill Giannelli
My statement is as follows: SELECT WHEN ssid = "" THEN grp = "" WHEN ssid = " " THEN say 'subsystem not entered'; call code OTHERWISE

Re: Rexx calls versus branching

2019-09-30 Thread Paul Gilmartin
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

Re: Rexx calls versus branching

2019-09-30 Thread scott Ford
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 >

Re: Rexx calls versus branching

2019-09-30 Thread Phil Smith III
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

Re: Rexx calls versus branching

2019-09-30 Thread Lionel B Dyck
; - 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

Re: Rexx calls versus branching

2019-09-30 Thread Bill Giannelli
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

Re: Rexx calls versus branching

2019-09-30 Thread Brian Chapman
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