Don't know where D M=CPU gets the CPC name.

If by "how I can get" you mean via assembler or REXX ... Our IEFACTRT exit's 
job summary includes the CPC name. We get it from the ECVT control block (field 
ECVTHDNM). The ECVT is pointed to by CVT + x'8c'. ECVTHDNM is at offset x'150' 
(see macro IHAECVT). Adjacent fields also contain LPAR name and the VM userid 
of the virtual machine (if the z/OS system is a guest).


Stan
Canada Revenue Agency
mailto:[email protected]
(613) 941-8091


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Stan Weyman
Sent: March 17, 2011 9:40 AM
To: [email protected]
Subject: How to get the CPC name on which the current system is running

   I'm looking for areas in z/OS where I can get the CPC name that the current 
system is running on.  The IPA is a possibility but looks to be populated via 
LOADxx and we've had issues with the HWNAME filtering causing problems with the 
CPC name.  I've looked at IBM's CSRSI service and they have a neat setup where 
you can request information at the CPC, LPAR, or VM level *OR* any combination 
of the three.  However, in IBM's infinite wisdom it appears they left the CPC 
name off the list of information returned via a CPC call <sigh>.  They have a 
CPCNAME defined in the macro expansion but it is an ORG of the LPARNAME and is 
in the LPAR area, not the CPC area so it's not a matter of doing a single vs 
multiple call type.  Very strange they would leave out the CPC name.  I've used 
the REXX CONSOLE interface in the past to do a D M=CPU and then GETMSG to 
retrieve it but I'd prefer not to use this method.

   Does anyone know where the CPC name is obtained when D M=CPU is issued or, 
barring that, another place I can get the CPC name?

      Regards,
        Stan

Stan Weyman
Senior Software Engineer
[email protected]<mailto:[email protected]>
EMC² *(508)249-3966
where information lives
It is wise to keep in mind that neither
success nor failure is ever final...


----------------------------------------------------------------------
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

Reply via email to