Closes a connection to a database.
DISCONNECT
Db (Database Object)
Err (Indicator Variable | *EXTENDED)
Required. A Database Object defined with the DCLDB command.
Optional. Determines what the runtime will do if an error occurs while executing this command. The following rules apply:
Err (Operand) - the name of the err variable.
Err (*EXTENDED) - a program status flag is set whose status can be checked using the %ERROR built-in function.
If the Err keyword is not given and an error occurs, a runtime exception will be thrown.
To open a connection to a database, use CONNECT.