The WAITEVNT macro waits for an N00102 event message.
Parameters: WAITEVNT Macro
Note: You can use the asterisk (*) as wild cards in the Name, Object, Resource, and Reference fields. A leading or embedded * represents a single character; a trailing * represents zero or more characters.
Lets you use the name of the event as a criterion to select the event to wait for.
Lets you use the type of event as a criterion to select the event to wait for. Valid values are as follows:
Selects events irrespective of their contents.
Selects events that contain user-defined information.
Selects events that contain security alarm information.
Selects events that contain object definition and relationship information.
Selects events that contain scheduling and process control information.
Selects events that contain availability, degradation, error, fault, and recovery information.
Select events that contain accounting, performance, response time, and statistics information.
Lets you use the scope of delivery of the event as a criterion to select the event to wait for. Valid values are as follows:
Selects events that are delivered to processes within the region of the event issuer only.
Selects events that are delivered to processes within the entire region.
Lets you use the object class as a criterion to select the event to wait for.
Lets you use the name of the resource or resource pair (separated by a comma) for which the event is issued as a criterion to select the event to wait for.
Lets you use the reference code for the event as a criterion to select the event to wait for.
Specifies how long the macro can wait for an event that satisfies the specified criteria.
Return Codes: WAITEVNT Macro
Event message received.
Event message not received within the specified time.
Returned Variables: WAITEVNT Macro
Contains the N00102 event message. The number of variables that contain value depends on the length of the message. Each variable can hold up to 256 bytes.
Contains the name of the event.
Contains the type of the information in the event.
Contains the scope of delivery of the event.
Contains the object class for the resource or resource pair for which the event is issued.
Contains the name of the resource or resource pair for which the event is issued.
Contains the reference code for the event.
Contains the part of data that is in the &$RMMCEVENT1 variable. If the data overflows into the other &$RMMCEVENTn variables, you can obtain all the data by concatenating the value in those variables to the value in this variable.
Example: WAITEVNT Macro
In the following example, the WAITEVNT macro waits for an event with a name that starts with OPERATIONS, and of the specified type and scope. The wait time period is 100 seconds.
PROD----- Automation Services : WAITEVNT Macro Parameter Definition ----------- Command ===> Function=BROWSE .- Event Parameters ----------------------------------------------------------. | | | Name......... OPERATIONS* | | | | Type........+ SERVICEABILITY | | Scope.......+ SYSTEM | | | | Object....... | | (Blanks will be translated to underscores) | | | | Resource..... | | Reference.... | | | | Wait Time ... 100 (0 - 9999, Blank = Wait Forever) |
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |