Previous Topic: SQL Communication Area (SQLCA)Next Topic: SQLCA in PL/I


SQLCA in COBOL

With the CA Datacom/DB SQL Preprocessor for COBOL, the possible formats of the SQLCA are:

In COBOL, the Preprocessor always generates the SQLCA structure. An INCLUDE SQLCA is not required. The Preprocessor ignores the INCLUDE directive if SQLCA is the member name. You may therefore either explicitly code the include of the SQLCA or omit it.

In DB2 mode, the CA Datacom/DB SQL Communication Area (SQLCA) used is the DB2 SQLCA, including the values for SQLCODE and SQLERRM.