To terminate DBAccess Server, start the administration program with the command
/START-SESDBA-ADMINISTRATION
In the same ways as the server, the administration program uses an initialization file (see section "Initialization file (start parameters)") whose name is read from SYSDTA. The default name is SYSDAT.SESDBA.091.INIT
. If the default name is to be used, you simply have to press the DUE key or enter an empty line in procedures.
The program then requests a command from SYSDTA. All commands and parameters may also be entered using lowercase characters. The following commands can be used to terminate the server:
CLOSE | DBAccess Server (main task and free server tasks) is terminated. Active server tasks continue to run. Active clients retain their connection; but no more clients can log on. |
CLOSE ALL | DBAccess Server is terminated completely (including the administration program). Even active server tasks are terminated, i.e. open transactions are rolled back. The administration program then terminates. |
CLOSE_ALL | This command continues to be supported for reasons of compatibility. It cannot be abbreviated. It has the same effect as CLOSE ALL. |
END | The administration program is terminated. |
The administration program can be started either interactively, in a procedure or as a batch job. In procedures and batch jobs the command to be executed can be specified in the procedure.
Example of a command sequence in a procedure
(IN) /ASSIGN-SYSDTA TO-FILE=*SYSCMD (IN) /START-SESDBA-ADMINISTRATION (OUT) Enter Name of INI-file (default is SYSDAT.SESDBA.091.INIT): (OUT) Enter administration command: (IN) CLOSE ALL