Determining the origin of a command or EXEC
The flexibility of the MainView AutoOPERATOR EXEC processor allows an EXEC to be initiated in many ways from many targets.
Because commands and EXECs can be issued from one target in one BBI-SS PAS to other targets within or across BBI-SS PASs, you need to know how to determine the origin of a command or EXEC.
Determining the origin of an EXEC is especially important for security reasons because an EXEC can send a message or another EXEC to execute some action on another target. The target should be able to take or not take the action based on the origin of the sending target. This means that the author of an EXEC must take special steps to ensure that the EXEC's action is appropriate for the situation. MainView AutoOPERATOR provides two variables that allow an EXEC to determine
- name of the originating BBI-SS PAS (IMFORGSS)
- origin of the EXEC (IMFORGN)
The origin of commands within an EXEC is the same origin as that of the EXEC.
These variables are defined in TSO-variables-supplied-by-MainView-AutoOPERATOR.
Use these variables to determine, for example, if the caller is authorized to execute the EXEC or to determine the user ID that is to receive any informational messages returned from the EXEC. Both variables are available to all EXECs automatically.