What is the difference between copy and include in cobol?

Answer Posted / srinivas

As far as I know, we use INCLUDE in COBOL-DB2 programs to copy the contents of the DCLGEN to the program. The only difference between INCLUDE and COPY is that while INCLUDE is executed at pre-compile time (by the SQL compiler), COPY is executed at compile time(by the COBOL compiler)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to know whether the module is dynamical or statistical?

650


Why occurs cannot be used in 01 level in COBOL?

711


What is the default value(s) for an initialize and what keyword allows for an override of the default?

691


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2727


Difference between array and sub-script ?

1158






What is report-item in COBOL?

704


What are the different open modes available in cobol?

713


Write a program to explain size error.

669


What is the difference between comp and comp-3?

692


what is difference between cobol and cobol/400

21556


What is Pic 9v99 Indicates in COBOL?

720


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2052


What are literals?

626


How to remove 2 duplicate records and copy only one using job control language?

736


What is amode(24)?

680