Opinions obviously vary, but I would not have any qualms about a small,
atomic assembler routine without a "new" save area of its own. IMHO that
often beats the heck out of the alternatives, typically a 72-byte GETMAIN
RU.

If you can't zero it, you could just comment the code heavily. If someone
chooses to shoot themselves in the foot after you retire, oh well ...

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of John McKown
Sent: Tuesday, June 25, 2013 8:38 AM
To: [email protected]
Subject: Re: z/OS subroutine in assembler, used in both batch & CICS ,
making re-entrant

On Tue, Jun 25, 2013 at 10:32 AM, Tom Marchant
<[email protected]>wrote:

> On Tue, 25 Jun 2013 10:20:01 -0500, John McKown wrote:
>
> >On Tue, Jun 25, 2013 at 9:56 AM, Tom Marchant wrote:
> >
> >> On Tue, 25 Jun 2013 08:15:46 -0500, John McKown  wrote:
>
> >> >4) What about not using a save area at all?
> >>
> >> Please don't do that.
> >>
> >
> >Looks like I'm going to be forced to. That is, use the caller's save 
> >area and not set up one of my own.
>
> In that case, I would strongly advise setting register 13 to zero upon 
> entry so that, if someone changes it to make a call it will abend.
> You can save its value in some other register.
>

Good idea. I'll see if I have a "spare" register to hold "R13 at entry".

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

Reply via email to