What is the difference between copy and include in cobol?



What is the difference between copy and include in cobol?..

Answer / 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

More COBOL Interview Questions

01 b pic +9(4) How many bytes it will take for storage???

2 Answers  


what is the difference between PA & PF keys?

1 Answers   IBM,


what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?

2 Answers   IBM, Wipro,


What are the different data types available in COBOL?

4 Answers  


01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.

15 Answers   ACS,






88 class is used for

5 Answers   CTS, EDS,


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


can we use full outer join with cursors declared in cobol program?

2 Answers  


How many maximum number of procedures can we write in one COBOL program?

6 Answers  


What are the access modes of START statement?

0 Answers  


1.Can we define condition-name conditions in FD entry.

11 Answers  


Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.

1 Answers  


Categories