Submitted Questions

  • What is the difference between COPY and INCLUDE

    Srinivas Enumula

    • Sep 8th, 2017

    Copy - Expand the copybook statements during compilation time.

    Include - Expand the copybook statements during pre-compilation time. Usually for DELGENS we use INCLUDE as DCLGEN statements needed during pre-compilation process.

    surya

    • Dec 31st, 2015

    Copy will be used in the cobol compile process and Include will be used during the Db2 precompile process. So we include a Dclgen. We cannot copy a dclgen..If so the program will fail the compilation.We can include a copybook too.