CALL "EDBI_DISCONNECT" [USING opCode                                parameters]                        GIVING returnCode  | 
opCode   | It is the function to be executed. Valid values, defined in iscobol.def, are:  | |
omitted  | Disconnects from the current connection.  | |
Disconnects from a named connection.  | ||
Disconnects from all connections.  | ||
parameters  | Parameters are used only by EDBI-DISCONNECT-CONNECTION opCode.  | |
call "edbi_disconnect" if return-code not = 0    display "Failed to disconnect from current connection" end-if  | 
call "edbi_disconnect" using edbi-disconnect-connection                              "OraConn1" if return-code not = 0    display "Failed to disconnect from OraConn1" end-if  | 
call "edbi_disconnect" using edbi-disconnect-all if return-code not = 0    display "Failed to disconnect from all connections" end-if  |