Following is a description of the three exits.
- Initialization exit
- Use the initialization exit to indicate to Session Manager which streams
you want to monitor. You also indicate whether Session Manager should log line-mode
output while users are executing full-screen programs. The initialization
exit receives control from the Session Manager initialization program, ADFMDF0A.
This exit does not hold any locks.
- Stream monitoring exit
- Use the stream monitoring exit to monitor the different Session Manager
streams and perform required processing. The stream monitoring exit
receives control, holding the local lock, from either of the following Session Manager
programs:
- ADFIMPUT, which puts a line into a stream
- ADFIMGET, which gets a line of input from a stream
For information about locks and serialization, see . Before ADFIMPUT puts a line into
a stream (excluding the TSO/E input stream), it determines if the
stream is being monitored. If it is, ADFIMPUT invokes the stream
monitoring exit routine, then puts the line into the stream.
Whenever
ADFIMGET retrieves the next line of input from a stream, it determines
if that stream is being monitored. If it is, ADFIMGET invokes the
stream monitoring exit routine. By waiting to invoke the exit after
the line is retrieved from the input stream instead of invoking the
exit when the line was put into the stream, the exit routine receives
the command that will now execute, not an input line that is being
stacked into the input stream.
- Termination exit
- Use the termination exit to perform required processing before Session Manager
ends. The termination exit receives control from the Session Manager initialization
program (ADFMDF0A) holding the local lock. The exit gets control whenever
the user enters either the following:
- Session Manager END command
- TSO/E LOGOFF command