SNAX/HLS Application Programming Manual

Sample Customization Routines
Customization
7–26 104707 Tandem Computers Incorporated
Sample Customization
Routines
The following sample program demonstrates a simple use of customization routines.
The problem proposed is to change a BIND protocol from definite or exception
responses to definite responses only. It is assumed that the half-session managed by
SNAX/HLS is an SLU.
Note This problem arose in connection with earlier versions of SNAX/HLS, which did not allow for user control
of the kind of responses used. If SNAX/HLS was given a choice of response types, it always chose the
exception-response chain alternative. The present version of SNAX/HLS, however, allows the user
control of this selection by the use of the NOTIFY-IND flag in a SEND-DATA request.
Two possible solutions are shown:
Solution 1. Provide a customization SNAXHLS^USEREXIT^SNAX^IN routine
that intercepts incoming BIND messages and changes the SLU chain response
protocol specification from definite or exception to definite only.
Solution 2. Provide a customization SNAXHLS^USEREXIT^SNAX^OUT routine
that intercepts outgoing FMD requests and clears the exception response indicator.
In the sample routines, both solutions are annotated with suitable commentary.