Previous Topic: REXX Program AS400CTL

Next Topic: Screen Examples


How AS400CTL.cmd Processes Alerts

The AS400CTL program has the following key functions:

  1. 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:
  2. 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.
  3. 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.
  4. Handles each alert, working from the bottom of the WRKALR screen upward (that is, oldest alert first) by: