skip to main content

Library Routines : EDBI_DISCONNECT

EDBI_DISCONNECT
The EDBI_DISCONNECT library routine disconnects from a database while working with isCOBOL Database Bridge.
Syntax:
 CALL "EDBI_DISCONNECT" USING opCode
Parameters:
Return code:
returnCode is zero if the disconnection was successful, 1 if the disconnection failed.
Examples:
Example - Disconnects from current connection
call "edbi_disconnect"
if return-code not = 0
   display "Failed to disconnect from current connection"
Example - Disconnects from specific connection to Oracle with custom name "OraConn1" when using multiple connections
call "edbi_disconnect" using edbi-disconnect-connection
if return-code not = 0
   display "Failed to disconnect from OraConn1"
Example - Disconnects from all connections when using multiple connections
call "edbi_disconnect" using edbi-disconnect-all
if return-code not = 0
   display "Failed to disconnect from all connections"
...
When called without parameters, EDBI_DISCONNECT disconnects the current connection.
Syntax:
 CALL "EDBI_DISCONNECT" GIVING returnCode
Return code:
returnCode is zero if the disconnection was successful, 1 if the disconnection failed.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left