Not a complete example...


DCL VAR(&MATMATR) TYPE(*CHAR) LEN(121)
DCL VAR(&BYTESIN) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR)
DCL VAR(&BYTESOUT) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR 5)
DCL VAR(&curvrt) TYPE(*CHAR) STG(*DEFINED) LEN(2) DEFVAR(&MATMATR 37)
DCL VAR(&curmem) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR 49)
DCL VAR(&curprc) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR 69)
DCL VAR(&DSPvrtprc) TYPE(*CHAR) LEN(10)
DCL VAR(&DSPsysMEM) TYPE(*CHAR) LEN(10)
DCL VAR(&DSPsysprc) TYPE(*CHAR) LEN(10)
DCL VAR(&sysprcdec) TYPE(*dec) LEN(8 2)

/* Get some LPAR details */
CHGVAR VAR(%BIN(&BYTESIN)) VALUE(121)
CALLPRC PRC('_MATMATR1') PARM((&MATMATR *BYREF) (X'01E0' *BYREF))
CHGVAR VAR(&DSPvrtprc) VALUE(%BIN(&curvrt 1 2))
CHGVAR VAR(&DSPsysMEM) VALUE(%BIN(&curmem 1 4))
CHGVAR VAR(&sysprcdec) VALUE(%BIN(&curprc 1 4))
CHGVAR VAR(&sysprcdec) VALUE(&sysprcdec /100)
CHGVAR VAR(&DSPsysprc) VALUE(&sysprcdec )
CHGVAR VAR(&DSPsysMEM) VALUE(%trimL(&DSPsysMEM 0))
CHGVAR VAR(&DSPvrtprc) VALUE(%trimL(&DSPvrtprc 0))
CHGVAR VAR(&DSPsysprc) VALUE(%trimL(&DSPsysPrc 0))



Vernon Hamberg wrote on 10/8/2014 1:09 PM:
Brian

I've not looked, but maybe the MI API MATMATR - lots of stuff in there.

Might be where QWCRSSTS is getting its information.

Vern

On 10/8/2014 11:54 AM, David Gibbs wrote:
On 10/8/2014 11:19 AM, Brian May wrote:
I've been looking around in the archives and Google and have not hit
on the right search yet to get an answer. Anyone know of an API I
can call to determine the number of processors/cores allocated to an
LPAR?
Are you looking to get the information from the system itself or from
the HMC?

IF you are looking at the system, the QWCRSSTS api with format
SSTS0200 might help.

http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/apis/qwcrssts.htm

david




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.