Result of Excluding SQLCA in COBOL DB2 Program



The SQLCA helps in the communication between DB2 and COBOL-DB2 program. The SQLCA has multiple fields which gives us different information regarding the last executed SQL query.

The SQLCA is mandatory in a COBOL-DB2 program. However, if we do not give the SQLCA using the INCLUDE statement then the program compilation will fail and we will get the below error in the logs−

“SQLCA is not defined as a data-name”
Updated on: 2020-09-14T11:18:22+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements