Using AS/400 Manager › Technical Information › Summary of the REXX Programs › REXX Program AS400CTL › How AS400CTL.cmd Processes Alerts
How AS400CTL.cmd Processes Alerts
The AS400CTL program has the following key functions:
- If the relevant AS/400 system status variable is set to RSTART, this program calls the appropriate initialization script as defined by CA Automation Point rules to:
- Sign on to the specified AS/400 systems
- Configure the AS/400 keyboard for 3270 use on each system
- Issue the OS/400 WRKALR command on each system
- If the AS/400 system status is ACTIVE, AS400CTL checks for alerts at regular intervals by pressing the PF10 (refresh) key in the WRKALR screen.
- Checks the response from all entered commands and function keys to see whether the session has failed. If it has failed, tries to recover the session by calling AS400REC and initialization scripts before setting the relevant AS/400 alert session system status variable to FAILED if the recovery was unsuccessful.
- Handles each alert, working from the bottom of the WRKALR screen upward (that is, oldest alert first) by:
- Typing 8 before the alert on the WRKALR screen to display the alert details screens
- Extracting message ID, message description, severity, and system ID from the alert details, usually paging forward using the PF8 key at least once
- Pressing Enter to return to the WRKALR main screen
- Sending the previously mentioned information to the CA Automation Point rules processor using the MSG command processor
- Typing 4 to request deletion of the alert
- Pressing Enter to confirm deletion of the alert
Copyright © 2012 CA.
All rights reserved.
|
|