DB2 graphic QMF Version 8

EXIT

The EXIT command works the same regardless of how the QMF session was started: it marks all the user's sessions for termination. In batch mode there is only one session. An interactive session includes the primary session and every session begun by the INTERACT command.

When the EXIT command is entered on the command line, the session in which it is entered is terminated immediately. Each session begun by the INTERACT command terminates as the application that started it completes. When the EXIT command is issued in an application, the session ends when the original QMF session ends. All interactive sessions begun by the INTERACT command must end before QMF terminates.

In a callable interface program, it is important to include the QMF EXIT statement when the application is done using QMF. If you forget to include this command your QMF session remains active until you log off, or until your batch job completes.

When the user or an application issues the EXIT command, QMF sets DSQAO_TERMINATE to 1 (marked for termination). Only an application running within QMF can test and use this global variable. If DSQAO_TERMINATE is set to 1 when QMF returns to the main QMF session, QMF immediately terminates and releases resources.


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004