Yeah - my ENFREQ code was 5 years old and I was giving it a bit of spit-and-polish for the new release and was foolishly expecting to rename the rather tired-looking "ENFPTR DS A" in my workarea to something like "DSA_ENFPTR DS A".
Now of course I have something like : DSA_.... DSA_xxxx DS blah *----------------------------------------------------------------------- * ..expletive deleted comments about ENFPTR so that I remember next time *------------------------------------------- -------------------------- DSA_ENFPTR DS A ENFPTR EQU DSA_ENF_PTR,L'DSA_ENF_PTR DSA_yyyy DS blah DSA_zzzz DS blah And me being me, that ENFPTR stands out like a spot of red paint on a white carpet. Sigh Rob Scott Developer Rocket Software 275 Grove Street * Newton, MA 02466-2272 * USA Tel: +1.617.614.2305 Email: [email protected] Web: www.rocketsoftware.com -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Chris Craddock Sent: 23 October 2009 19:33 To: [email protected] Subject: Re: Bizarre requirement for ENFREQ macro On Fri, Oct 23, 2009 at 12:13 PM, Rob Scott <[email protected]>wrote: > I was re-working some of my code for a new release today and I found a > bizarre pre-req if you want to use the ENFREQ macro - you *must* > declare a fullword field called "ENFPTR" - you cannot call it anything > - else and there is no keyword on the macro to override it. > > Am I alone in my astonishment? > > > No laddie, you're not alone. That interface is older than dirt and evidently the developer of the original macro couldn't figure out how to build a proper R1 -> (List of pointers to parameters) style parameter list, so he or she just made the caller responsible for providing it. The important safety tip you need to know is that the idiotic macro really is going to store into that field, so you need to define "ENFPTR" as a word in reentrant storage. -- This email might be from the artist formerly known as CC (or not) You be the judge. ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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

