Using AS/400 Manager › Technical Information › Automation Session Programs › REXX Programs › Key AS400INI Functions
Key AS400INI Functions
The AS400INI program performs these tasks:
- If called with the WAIT parameter:
- Waits for the specified number of seconds
- Binds to the specified session
- Finds automation session system status variables for each system in the session that is in RSTART mode.
- This program checks to see if the signon menu is shown with the correct terminal ID or AS/400 system name. If either of these cases is true, the specified initialization script as defined by AS400SET is called to perform signon of the AS/400 system.
- If the main menu is then shown for the relevant AS/400 system, the relevant automation session system status variable is set to ACTIVE.
- If the main menu is not shown for the relevant AS/400 system, error recovery is performed by:
- Calling the AS400RES script
- Calling the initialization script
- If the main menu is still not shown for the relevant AS/400 system:
- An error message is written to the AP Msg and Action Msg windows.
- The automation session system status variable is set to FAILED.
- If called at CA Automation Point startup with the WAIT parameter:
- The current session is unbound (UNBIND).
- The program is terminated without any returned value.
- If called from AS400JMP, the program is terminated with the current status value returned to AS400JMP.
Copyright © 2012 CA.
All rights reserved.
|
|