The ERROR keyword lets you determine what happens if the following search fails to find the data. The ERROR keyword applies to all subsequent SEARCH statements until another ERROR statement replaces it.
This keyword has the following format:
ERROR=action
Valid values for action are:
If the search fails, this value tells CA Automation Point to stop processing the script. Use this value when you want the script to search the screen for error indicators. If none are found, the script is complete and can be terminated.
If a search fails, this value tells CA Automation Point to stop processing the script, stop controlling the session, stop monitoring messages, and begin action to clear a console error. Consequently, session automation is suspended for a period specified by the Post-Error Restart Automation setting for the session. After the wait period, CA Automation Point automatically restarts the session to restore session automation. You can use this value in console initialization scripts before searching for a text string that must be present to initialize the session.
If the search fails, this value tells CA Automation Point to ignore all subsequent statements in the current search until it finds the matching ENDSEARCH statement, and then to continue executing the remainder of the script.
Default: ENDSCRIPT
|
Copyright © 2012 CA Technologies.
All rights reserved.
|
|