Previous Topic: Key AS400INI Functions

Next Topic: AS400MRP Screen Examples


Key AS400MRP Functions

AS400MRP uses the parameters supplied to do the following tasks:

  1. 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:

    Otherwise, the REXX variable RESULT contains the automation session name for the relevant AS/400 system.

  2. Issue the following OS/400 command shown using SESSCMD:
      dspmsg msgq(*sysopr) msgtype(*inq) astlvl(*intermed) start(*last)
    
  3. AS400MRP compares 75 characters of the message text supplied in the parameters with the inquiry message texts on the operator queue as follows:
  4. The reply given in the parameters passed to AS400MRP is used as input in the unprotected field following the inquiry message.
  5. PF3 (end key) is issued to exit the operator message queue.
  6. 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.