Using AS/400 Manager › Technical Information › Automation Session Programs › REXX Programs › Key AS400MRP Functions
Key AS400MRP Functions
AS400MRP uses the parameters supplied to do the following tasks:
- Call AS400JMP to check the AS/400 system status, obtain the session name of the relevant automation session, and bind it. If the returned REXX variable RESULT contains the word ERROR:
- Error messages are written to the AP Msg and Action Msg windows
- Processing of AS400MRP is terminated
Otherwise, the REXX variable RESULT contains the automation session name for the relevant AS/400 system.
- Issue the following OS/400 command shown using SESSCMD:
dspmsg msgq(*sysopr) msgtype(*inq) astlvl(*intermed) start(*last)
- AS400MRP compares 75 characters of the message text supplied in the parameters with the inquiry message texts on the operator queue as follows:
- The message search is from the top of the screen to the bottom of the screen.
- PF7 (page backward) is performed up to five times (if necessary) until the message is found.
- If the message text is on the bottom of one screen and the input field is on the top on the next screen, a PF8 (page forward) is done.
- The reply given in the parameters passed to AS400MRP is used as input in the unprotected field following the inquiry message.
- PF3 (end key) is issued to exit the operator message queue.
- The automation session is unbound.
If any SESSCMD results in a nonzero RC (return code), the REXX program AS400SLR is called to perform error notification actions.
Copyright © 2012 CA.
All rights reserved.
|
|