David Day said > The recent discussion on SRM constant made me realize I need to add > some logic to some code. I want to be able to recognize when processors > are added and/or removed from the MVS image. As best as I can determine > from the manuals, setting up a System Listener for ENF events appears to > be the way to go. Look for system event 61, and then execute CSRSI. In > the data returned by CSRSI <snip> > Will this work?
Absolutely. > Anyone who has been down this path before and who > would comment, I would appreciate it. ENF is generally a royal PITA to set up the interface(s) and make sure you're getting called for the events you thought you were expecting (see the description of ENFREQ!) but after you have stubbed your toe on it for about the twentieth time it gets easier :-) ENF itself is bullet-proof. Aside from the ENFREQ macro interface, the complexity with ENF arises mainly in reliably managing your own exit - i.e. its residency, lifetime etc. Those are pretty much the same concerns you would have with any other system exit. If your timeliness requirements are not onerous, then there are other less complex ways of noticing the data has changed, e.g. polling the control block on some sort of interval timer. Otherwise ENF is the only game in town. CC ---------------------------------------------------------------------- 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

