¿ªÔÆÌåÓý

Re: (B)Rexx and Signal


 

¿ªÔÆÌåÓý

Bert,

Well the error seems clear, when I code it I get the error:-

?

SIGNAL ON must be followed by one of the keywords ERROR, HALT, NOVALUE, NOTREADY or SYNTAX

?

But I haven¡¯t checked they all work! For example I would expect ¡°signal on failure¡± to trigger a syntax error and it doesn¡¯t.

It does work on SP5 REXX so I¡¯ll investigate but it will not be today¡­

So ¡°FAILURE¡± is not currently supported. I checked on the SP5 system at LCM+L and its not supported there in the ¡°original¡± REXX either.

I checked in a ¡°recent¡± zVM manual (7.1) and its not in there either.

So I don¡¯t think raising a bug report will get it added.

?

Which IO? Well if you want it to work on the LCM+L SP5 then you need EXECIO.

Looks like on latest zVM both work. Its your choice.

?

Dave

?

From: [email protected] <[email protected]> On Behalf Of Bertram Moshier
Sent: 02 January 2023 08:35
To: [email protected]
Subject: Re: [h390-vm] (B)Rexx and Signal

?

Hello and thank you for the wonderful reply,

?

As all the other SIGNAL ON work, should / will SIGNAL ON FAILURE work in VM/CE's REXX?

?

Should I open a ticket to get SIGNAL ON FAILURE to work?

?

Does VM/CE support EXECIO or should I be using lineout and linein, as well as charout and charin?

?

Thanks, Bert

?

?

On Mon, Jan 2, 2023, 02:15 Dave Wade <dave.g4ugm@...> wrote:

OK, so REXX is the generic name for the language. It comes in many flavours or implementations. For example on Windows I know of Regina, BREXX and ooRexx.

The ¡°original¡± REXX was written in ASSEMBLER by Mike Cowlishaw because of his frustration with Mainframe scripting languages. It first appeared in public in VM/SP R3 (I believe).

It is part of CMS and copyright and licenced so not available to us. It also relies on CMS commands for several functions., and these commands don¡¯t (or didn¡¯t) exist in ¡°our¡± CMS.

When REXX was standardised by ANSI these commands were not included, and instead new functions were added to the language. These functions were not implemented in VM REXX at that time.

BREXX is a portable implementation of ANSI REXX in ¡°C¡± and so is different to the REXX in CMS.

Over time some of the non-ansi buts have been added back and ¡°WE¡± try and make it as close to the original REXX but some things just don¡¯t work!

?

As for ¡°Signal¡± the documents say ¡°no¡± but it may be out of date. The folks who work on VM/CE are just folks with too much time, not a managed team, so things may not work as expected¡­

¡­ mind you they never did¡­.

?

Dave

p.s. Wiki pages on REXX has more info.

PPS. I always write REXX because CMS works that way. Perhaps it should be Rexx¡­

?

?

From: [email protected] <[email protected]> On Behalf Of Bertram Moshier
Sent: 02 January 2023 01:34
To: [email protected]
Subject: Re: [h390-vm] (B)Rexx and Signal

?

Hello,

?

I thought SIGNAL wasn't supported because of documentation I read (must have been old).? My template (which I just uploaded) does:

?

/*------------------------*\
| ?Enable trap processing ?|
\*------------------------*/
? ?SIGNAL ON ERROR
? ?SIGNAL ON FAILURE
? ?SIGNAL ON HALT
? ?SIGNAL ON NOVALUE
? ?SIGNAL ON SYNTAX??

?

?

I found REXX on VM/CE isn't supporting SIGNAL ON FAILURE

?

Bob suggested opening a ticket in an earlier email (at?).

?

Is VM/CE BREXX supposed to support SIGNAL ON FAILURE?? If yes, then I'll open the ticket.? If not, why and can it someday do it?

?

Finally, what is the difference between REXX and BREXX, if any?

?

Thank you,

?

Bertram Moshier? WB8ERT

?

?

?

?

?

?

?

?

On Sat, Dec 31, 2022 at 5:09 AM Bertram Moshier via <herc370390vm=[email protected]> wrote:

Hello,

?

I use the Signal instruction in rexx and am wondering when BRexx will support them on VM/CE?

?

Thank you,

?

Bertram Moshier

Join [email protected] to automatically receive all group messages.