INCLUDE & COPY in COBOL

来源:互联网 发布:压缩文件加密破解软件 编辑:程序博客网 时间:2024/05/16 08:39

(1).
EXEC SQL
     INCLUDE CUSTDCL
END-EXEC.

(2).
EXEC SQL
       COPY CUSTDCL
END-EXEC.

INCLUDE is executed at pre-compile time (by the SQL Compiler).
COPY is executed at compile time (by COBOL Compiler).

 WRONG:
     (2)  We can use COPY for DCLGEN, but get RC=4 from precompiler because the pre-compiler searchs for the host variables used in SQL statement and it doesn't not find them returns 4.

 

原创粉丝点击