Lindy,
Using Rexx, this is not going to be easy if you want to do all of the plumbing
yourself as there is no single field that would yield the answer.
You have to :
(1) Sample the CPUTime accumulators (ASCBEJST and pals)
(2) Wait for a little while
(3) Sample again.
(4) Work out the difference (remembering to cater for jobs starting/stopping
during your sample interval)
(5) Get the number of CPUs online during your sample intervals and work out
total possible CPU time
(6) You might want to factor in LPAR weighting to (5)
(7) Work out CPU percentage as (4)/(5) * 100
In your case, I would investigate one of the following :
(1) I believe your company has a license for MXI G2 - this means that you can
take advantage of its enhanced REXX interface :
/* REXX */
MXIREXX_SERVER = 'MXI'
MXIREXX_STEMLEVEL = 2
lrc = mxig2rx("DA")
do i = 1 to mxirexx.Jobname.0
say mxirexx.Jobname.i [EMAIL PROTECTED]
end
(2) RMF service ERBSMFI can return this sort of information - maybe you can use
this in REXX as well or write a "stub" function to call it.
(3) z/OS 1.9 includes a REXX API for SDSF
Please contact me offline if you want help on using the MXI G2 Rexx interface.
Rob Scott
Rocket Software, Inc
275 Grove Street
Newton, MA 02466
617-614-2305
[EMAIL PROTECTED]
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of
Lindy Mayfield
Sent: 12 October 2007 07:48
To: [email protected]
Subject: Where to find CPU% Used by an Address Space
I really hate asking questions like these because I would prefer to just go to
the doc and look it up. Questions like "where and in which control block do
you get x" aren't easy to find, as far as I know.
For a particular address space I can get lots of good information, like CPU
time which I total up from ASCBEJST+ASCBSRBT+ASSBASST in ASCB and ASSB.
Can someone please point me to a way to find out what percentage of the machine
an address space is using? It could be percentage of CPU also and then I can
find number of CPU's and do the math, or total percentage depending on how the
numbers are stored. I'm not sure how to do this.
The only way I know to find something like this is to dig through all the Data
Areas books hoping to find something that I recognize, but often the
description of the data areas aren't what I would expect. Is there an easier
way? Or is the best way to depend on the kindness of people who have vast
experience with these things, like on this list who know where these things are?
It's for a simple Rexx exec report I'm writing.
Thanks very kindly,
Lindy
----------------------------------------------------------------------
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