This exit permits a check to be kept on requests for connections to system applications (e.g. $DIALOG). The exit routine is called when BCAM recognizes that a local or remote partner wishes to set up a connection to a system application.
The following information is passed to the exit routine:
R1 = A($SYSX parameter area) R12 = A(TPR program manager) R13 = A(save area of calling component) R14 = A(indirect return) R15 = A(exit routine)
The parameter area has the following format:
|
|
|
|
|
|
|
|
fun = | Function of the exit routine (field contents: X’01’). |
typ = | Function type; initially only one type exists, with the code X’01’. |
id = | Application ID. |
The application name/processor name are supplied, resulting in the following structure:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
called appl: | Name of the system application called. |
own proc: | Name of the local processor. |
calling appl: | Name of the calling application. |
partner proc: | Name of the partner processor containing the calling application. |
Warning
Only a comparison of names should be performed in the exit routine. Before the names (IDs) are accessed, the type must be checked because this can change the format (in particular the length) of the ID. An errored exit routine can cause the communication system (DCM) to crash.
Return code for the calling system component in the $SYSX parameter area.