On Fri, 11 Jan 2008 10:36:14 -0600, David Day <[EMAIL PROTECTED]> wrote:
> 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 > >SI22V1CONFIGUREDCPUCOUNT DS BL2 A 16-bit unsigned binary integer that * > specifies the total number of CPUs that are * > in the configured state. A CPU is in the * > configured state when it is in the * > configuration and available to be used to * > execute programs. > > The above field should tell me the number of CPU's that are active. > > Will this work? Anyone who has been down this path before and who would comment, I would appreciate it. > Never done it, but looks right. ShowMVS uses the CSRSI returned data that you are considering (I use data from the CSD in IPLINFO since it is rexx). As further proof... looking at the ENF listeners with ShowMVS I see one of our vendor's licensing software programs listening on event 61. Mark -- Mark Zelden Sr. Software and Systems Architect - z/OS Team Lead Zurich North America / Farmers Insurance Group - ZFUS G-ITO mailto:[EMAIL PROTECTED] z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/ Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.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

