Skip to main content

SQLCA throws compiler diagnostic

  • June 8, 2019
  • 1 reply
  • 0 views

I am compiling a suite (about 300) of COBOL programs as part of an upgrade to Enterprise Developer 4.0.  One of the programs doesn't compile - the "error" is the COMP-5 usages in SQLCA, which is pulled into the program with an INCLUDE.  Many other programs also INCLUDE SQLCA - and they all are compiling without any problem.  What is going on here - and how do I find the actual error?  It's not in the SQLCA, obviously.


#EnterpriseDeveloper

1 reply

  • 0 replies
  • June 14, 2019

I am compiling a suite (about 300) of COBOL programs as part of an upgrade to Enterprise Developer 4.0.  One of the programs doesn't compile - the "error" is the COMP-5 usages in SQLCA, which is pulled into the program with an INCLUDE.  Many other programs also INCLUDE SQLCA - and they all are compiling without any problem.  What is going on here - and how do I find the actual error?  It's not in the SQLCA, obviously.


#EnterpriseDeveloper

Well, I found the error - and it wasn't in the SQLCA.  At the end of the program a reference to a field from a copybook used a reserved work - COL, I believe.