WAITSTAT Macro

The WAITSTAT macro waits for a specific resource or service state change and retrieves the status.

Parameters: WAITSTAT Macro

Example: WAITSTAT Macro

In the following example, you want to detect a change in the actual state of the resource TCPA from INACTIVE to ACTIVE. If the change is not detected within 30 seconds, the process sets the return code to 16. A variable prefix of ZRMST has been specified.

PROD----- Automation Services : WAITSTAT MACRO Parameter Definition ----------- Command ===> Function=BROWSE .- State Change Event Receipt Profile ----------------------------------------. | | | System Name .............+ | | Version .................+ | | Resource Class ..........+ STC | | Resource Name ............ TCPA | | | +-----------------------------------------------------------------------------+ | | | State Type ..............+ ACTUAL | | Transition From State ...+ INACTIVE | | To State .....+ ACTIVE | | Timeout period ........... 30 (Seconds - 1-9999) | | Return code .............. 16 (0-99) | | Variable Prefix .......... ZRMST | | User Keywords ............ NO (YES/NO) | | | '-----------------------------------------------------------------------------' F1=Help F2=Split F3=Exit F9=Swap


Copyright © 2010 CA. All rights reserved.