Problem:
How do I resolve an error compiling my SQL application?
How do I resolve an error compiling my DB2 application?
How do I resolve an error compiling my XDB application?
Compiling with Cobsql returns CSQL-F-016: Unix error
Compiling with Cobsql returns CSQL-F-015: Dos error
Compiling with Cobsql returns CSQL-F-014: Windows error
Note that this article applies to both Net Express and Server Express.
Resolution:
Note that this article applies to both Net Express and Server Express.
If using either Cobsql or compiling with the DB2 directive -- i.e. to use the DB2 ECM -- and your application doesn't compile, in order to isolate whether the problem lies with either Micro Focus software or the RDBMS precompiler, we suggest that you precompile the application using the Database vendors' command-line precompiler, i.e.
* IBM DB2 : db2 prep ...
* Oracle : procob ...
* Informix : esqlcobol ...
* Sybase : cobpre ...
If the application fails to precompile with the same error, then you should refer to the Database vendor's documentation. Typically you would need to refer to either the SQL Reference Manual, or the Programmer's Guide for their precompiler.
If however the command-line precompile works ok, then this points to a likely issue with Micro Focus technology, most likely the cobsql precompiler for Oracle/Informix/Sybase, or the DB2 ECM for DB2 applications. You should follow this up with your local Micro Focus SupportLine office, providing (ideally) a cut-down application, details of the directives being used, and also precompiler debug files (if appropriate), as referred to within the Micro Focus Database Access manual.