In <[email protected]>, on
07/19/2011
at 02:39 PM, Gary DiPillo <[email protected]> said:
>I have a batch program (A) that is re-entrant. However, statically
>linked to it is a program (B) that is not re-entrant. When this
>program B is called, it stores program (A)'s R13 in a save area
>within program (B)'s own storage. No ABEND, no program check. I
>used to think this was worthy of an 0C4.
That depends. A module linked with RENT will be loaded into SP 251 or
SP 252, depending on whether the library concatenation is authorized.
There are additional variables if it is linked REFR or is LPA
resident.
>Can someone suggest how these programs that are marked as re-entrant
>can be loaded and executed without error even though they are
>storing data within themselves?
That's legitimate if they serialize the access and run with the proper
PSW key. In your case the program probably should have been bound as
REUS.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html