EMS Manual

Procedure Calls for Standard Events
EMS Manual426909-005
11-35
EMS_USAGE_THRESHOLD_CHK_
Considerations
The caller should provide enough space (20 words) for Usage Threshold Control
Block, and the content should not be modified by the caller.
EMS_USAGE_THRESHOLD_CHK_
The EMS_USAGE_THRESHOLD_CHK_ procedure returns whether a standard usage
threshold event should be generated.
The syntax of EMS_USAGE_THRESHOLD_CHK_ is:
status returned value
INT:value
returns one of these SPI error numbers:
0 No error
-1 Invalid buffer format
-3 Missing parameter
-4 Illegal parameter address
Current utilization level input
FLOAT:value
is the current utilization level of the object.
Usage Threshold Control Block input, output
INT .EXT:ref:20
is the control block used by subsequent calls to
EMS_USAGE_THRESHOLD_CHK_ and
EMS_USAGE_THRESHOLD_EVT_BLD_.
report event output
INT .EXT:ref:1
returns ZSPI-VAL-TRUE if the standard usage threshold event should be
generated. Returns ZSPI-VAL-FALSE otherwise.
Condition Code Settings
The condition code has no meaning following a call to
EMS_USAGE_THRESHOLD_CHK_.
{ status := } := EMS_USAGE_THRESHOLD_CHK_(
{ CALL } Current utilization level ! i
, Usage Threshold Control Block ! i,o
, report event ! o
);