Attunity Connect implements the COBOLSQLAllocEnv function, which can be used in place of the SQLAllocEnv API. By setting Attunity Connect to use strings that are space-padded and not null-terminated as input or output, the COBOLSQLAllocEnv function enables applications based on languages other than C to work with ODBC.

COBOLSQLAllocEnv affects the way the following ODBC APIs handle strings:

  • SQLBrowseConnect
  • SQLColAttributes
  • SQLConnect
  • SQLDataSources
  • SQLDescribeCol
  • SQLDriverConnect
  • SQLDrivers
  • SQLError
  • SQLGetConnectOption
  • SQLGetCursorName
  • SQLGetInfo
  • SQLNativeSql
  • SQLSetConnectOption