Declaring SQLCA

WARNING! Although SQLSTATE is preferred over SQLCODE and SQLCA, this version of the precompiler supports only SQLCODE. A future version will fully support both SQLCA and SQLSTATE.

Declare SQLCA in your application program’s WORKING-STORAGE SECTION. The syntax for declaring SQLCA is:

exec sql include sqlca [is external] [is global]
      end-exec.