Really? Is it not better (for ease of use rather than absolute performance) for the single called routine to be required to make the environmental distinction than to have dozens or hundreds of calling programs call the specific entry point for the environment in which it is working? Are there different entry points for the LE Get (Heap) Storage routine, dependent on the environment? No, there is only one (CEEGTST). I would imagine that the routine interrogates its environment to determine if, for example, it needs to use CICS services to acquire the storage, or if it can use MVS services (or something else, perhaps, in other environments).
>________________________________ > From: John Gilmore <[email protected]> >To: [email protected] >Sent: Thursday, June 27, 2013 11:16 AM >Subject: Re: z/OS subroutine in assembler, used in both batch & CICS , making >re-entrant > > >Something akin to Mike Ward's scheme will work well. > >My own preference would, however, be for two different entry points. >It is ugly to take a foregone code-path decision at execution time >when it can be taken at bind time. > >John Gilmore, Ashland, MA 01721 - USA > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: INFO IBM-MAIN > > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
