Previous Topic: OPSCPU Function

Next Topic: OPSDELV Function

Records That OPSCPU Returns

The OPSCPU function places a line in the external data queue (EDQ) for each processor, and then returns the number of lines it added to the EDQ. Each line added to the EDQ is formatted as follows:

Word Number

Length

Description

1

3

The processor address as a hexadecimal string (Currently the possible values are 00 - FF)

2

8

The processor type. Possible values are: CPU, ICF, zAAP, zIIP or Unknown

3

8

The processor status. Possible values are: online, offline or notavail

4

3

Whether or not the processor is WLM-managed. Possible values are WLM or *

5

10

The CPU ID of the processor (if its status is online) or N/A.

Note: The lengths of the above words may change in a future release and new words may be added after the last documented word, but their relative position (word number) will not change.

Example: OPSCPU function

The following sample OPS/REXX code:

processors = OPSCPU(“I”)
say "Number of processors:" processors  
do processors
  pull line
  say line
end

Produces output similar to the following:

Number of processors: 9
00  CPU      online   *   0A08312091
01  CPU      online   *   0A08312091
02  CPU      online   *   0A08312091
03  CPU      online   *   0A08312091
04  zAAP     online   *   0A08312091
05  CPU      offline  *   N/A       
06  CPU      offline  *   N/A       
07  zAAP     notavail *   N/A       
08  zIIP     offline  *   N/A