This variable lets you control how your COBOL application shuts down when no client activity occurs during the interval defined by TC_CHECK_ALIVE_INTERVAL. Setting TC_QUIT_MODE to -1 (the default value) shuts your program down according to the value chosen for the QUIT_MODE configuration variable. If you set this variable to 0, the runtime stops the program immediately.
When this variable is set to a value greater than 0 (up to 32767), your application has a program-controlled exit. When the runtime determines that the thin client is no longer responding (no user interaction and no pings during TC_CHECK_ALIVE_INTERVAL), the MSG-MENU-INPUT event is sent to the program's main window and EVENT-DATA-2 contains the value defined by TC_QUIT_MODE. Your program can detect this in the main window's event procedure and you can perform whatever code you desire. At this point there is no connection to the thin client, so user interface operations may not be performed. You must end your shutdown code with STOP RUN to terminate the runtime.
For more information about the thin client, refer to the AcuConnect User's Guide.