NetBase for MPE Reference Guide

AutoRPM
8-5
Notes on Implementing AutoRPM
In some cases, you may want users requesting one program locally to actually run another program
remotely. NetBase allows you to do this via the renaming option in the PROGRAM entry. For
example, if your users try to run EDITOR.PUB.PROD locally, and you want them to run
QUAD.LIB.NETBASE on a remote node, you would enter the following PROGRAM entry:
D> PROGRAM EDITOR.PUB.PROD=QUAD.LIB.NETBASE,REMNODE
When issuing the LOGON entry in NBDIR, you should verify that the remote logon is valid. In the
following example, the account MAIL, the user MGR.MAIL, and the group PUB.MAIL must exist on
SYSB. Since no passwords are specified, none should be expected by the system (SYSB). Finally,
third party security packages must not be in place to intercept a logon for MGR.MAIL.
D> LOGON @.ACCT:SYSB=REMOTEU,MGR.MAIL,PUB
If you do not want to send file equations over to the remote node where the program will run, you
should specify the NOEQ option on the PROGRAM entry. For the same reason, if you do not need
JCWs transported back to the local node, you should specify NOJCW on the PROGRAM entry. By
default, all file equations are sent to the remote system and the system JCW is returned.
D> PROGRAM CALCR.PUB.PROD,REMNODE;NOEQ;NOJCW
Normally, when an AutoRPM process ends, the remote session ends. When the remote program is
started via a stub program like NBNULL, the session will always terminate when the user exits the
remote program. When the program is terminated, so is the environment.
If the remote process is created by intercepting a CREATEPROCESS call, the DS environment is
created in the context of the program calling CREATEPROCESS (a local menu program, for
example). Since that program (the menu driver) does not terminate when the user exits the remote
program, the remote session will remain unless the ;SHUT option is invoked.
D> PROGRAM CALCR.PUB.PROD,REMNODE;SHUT
NetBase disables the break key during AutoRPM so that users cannot get to the MPE colon
prompt on the remote system.
NetBase provides the option of specifying an X2 list for the program. If you specify ;XL=MYLIST
on the program entry, you must enter an XL entry in NBDIR:
XL MYLIST=XL.PUB.PROD
PROGRAM CALCR.PUB.PROD,REMNODE;XL=MYLIST