当我尝试预编译包含嵌入式 SQL 语句的 DB2 Cobol 应用程序时,我的SYSTERM
文件中出现以下错误:
********************************* TOP OF DATA **********************************
DSNH527I W DSNHOPTS THE PRECOMPILER OR DB2 COPROCESSOR ATTEMPTED TO USE THE
DSNH004I S DSNHLEXC PROCEDURE DIVISION COULD NOT BE FOUND
DSNH053I W DSNHMAIN NO SQL STATEMENTS WERE FOUND
SOURCE STATISTICS
SOURCE LINES READ: 205
NUMBER OF SYMBOLS: 10
SYMBOL TABLE BYTES EXCLUDING ATTRIBUTES: 1640
THERE WERE 3 MESSAGES FOR THIS PROGRAM.
THERE WERE 0 MESSAGES SUPPRESSED BY THE FLAG OPTION.
188712 BYTES OF STORAGE WERE USED BY THE PRECOMPILER.
RETURN CODE IS 12
******************************** BOTTOM OF DATA ********************************
我认为错误在于它找不到“程序部门”部分,但它在此处的代码中:
*---------------------------------------------------------------*
* P R O C E D U R E D I V I S I O N *
*---------------------------------------------------------------*
PROCEDURE DIVISION USING LK-TRANS-INPUT.
000-MAIN.