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

How to know whether the module is dynamical or statistical?

0 Answers  


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


what is the diff b/w select stsmt and cursor ?

2 Answers  


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


Name some of the examples of COBOl 11?

0 Answers   CSC,






How to read the last 100 records from a COBOL file. The file contains N number of records.

11 Answers   IBM,


01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??

1 Answers  


If we use GO BACK instead of STOP RUN in cobol?

2 Answers   Temenos,


how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  


i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2

9 Answers  


What is the Purpose of POINTER Phrase in STRING command

3 Answers  


Categories