DB2 Version 10.1 for Linux, UNIX, and Windows

sqlgaddr API - Get the address of a variable

Places the address of a variable into another variable. This API is used in host programming languages, FORTRAN and COBOL, which do not provide pointer manipulation.

Authorization

None

Required connection

None

API include file

sqlutil.h

API and data structure syntax

SQL_API_RC SQL_API_FN
  sqlgaddr (
   char * pVariable,
   char ** ppOutputAddress);

sqlgaddr API parameters

pVariable
Input. Variable whose address is to be returned.
ppOutputAddress
Output. A 4-byte area into which the variable address is returned.