The OPSCPU function places a line in the external data queue (EDQ) for each processor, and then returns the number of lines it adds to the EDQ. Each line that it adds 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 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 preceding words may change in a future release and new words may be added after the last documented word. However, their relative position (word number) will not change.
Example: OPSCPU function
This sample OPS/REXX code produces output similar to the sample output that directly follows it:
processors = OPSCPU(“I”)
say "Number of processors:" processors do processors pull line say line end
Sample output:
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
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|