Rocket® Visual COBOL® (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
GET HDBC
Enables you to use ODBC calls that require you to supply the ODBC connection handle.
Syntax:
>>---EXEC SQL---GET HDBC---INTO---:hvar---END-EXEC---->
Parameters:
| hvar | A host variable to store the ODBC connection handle. Must be declared as PIC X(4) COMP-5. |
Example:
EXEC SQL
GET HDBC INTO :hvar
END-EXEC