If an error occurs when compiling a program that requires technical support, your support representative might ask you to provide additional debug files to help in determining the cause of the problem. You obtain these debug files by specifying extra Compiler directives. You might want to specifiy some of these directives to help in your own debugging efforts. The directives are:
- OpenESQL
-
Directive
|
File created
|
Information within file
|
CHKECM(CTRACE)
|
ecmtrace.txt
|
Pseudo COBOL code that shows the code generated to replace the EXEC SQL statements. This file is equivalent to output from the OpenESQL ODBC precompiler.
|
CHKECM(TRACE)
|
ecmtrace.txt
|
Detailed information as to what information is passed between the ODBC ECM and the Compiler. If an error occurs that generates invalid syntax, this file will be needed to help isolate where the problem occurred.
|
SQL(CTRACE)
|
sqltrace.txt
|
Detailed list of information passed to OpenESQL Precompiler Services, and the results. This file is very useful if an error might involve a bug in the OpenESQL run time as well as the OpenESQL ECM.
|
ECMLIST
|
program-name.lst
|
The standard COBOL list file, with pseudo COBOL code that shows the code generated to replace the EXEC SQL statements. You must also compile the program with the CHKECM(CTRACE) and LIST directives.
|
- DB2 ECM
-
Directive
|
File created
|
Information in the file
|
CHKECM(CTRACE)
|
ecmtrace.txt
|
This file contains pseudo COBOL code that shows the code generated to replace the EXEC SQL statements. This code is equivalent to output from the IBM DB2 COBOL precompiler.
|
CHKECM(TRACE)
|
ecmtrace.txt
|
This file contains detailed information as to what information is passed between the DB2 ECM and the Compiler. If an error occurs that generates invalid syntax, this file will be needed to help isolate where the problem occurred.
|
DB2(CTRACE)
|
sqltrace.txt
|
This file contains a detailed list of information passed to IBM Precompiler Services, and the results. This file is very useful if an error might involve a bug in the DB2 system software as well as the DB2 ECM.
|
ECMLIST
|
program-name.lst
|
This file is the standard COBOL list file, with pseudo COBOL code that shows the code generated to replace the EXEC SQL statements. You must also compile the program with the CHKECM(CTRACE) and LIST directives.
|
- COBSQL
- For more information, see the topic
COBSQL.