GET HENV

Syntax

>>---EXEC SQL---GET HENV---INTO---:hvar---END-EXEC---->

Parameters

hvar A host variable to store the ODBC environment handle. Must be declared as PIC X(4) COMP-5.

Purpose

The GET HENV statement allows you to use ODBC calls that require you to supply the ODBC environment handle.

Example:

EXEC SQL 
    GET HENV INTO :HENV 
END-EXEC