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

What type of SDLC u followed? Why?

1522


how to convert the recors form vsam file to db2 table tru file aid

2765


how do you reference the variable block file formats from cobol programs

688


How do you reference the fixed block file formats from cobol programs

709


What kind of error is trapped by on size error option?

746






What is cobol?

750


For rewrite, why is it mandatory that file needs to be opened?

623


explain sorting techniques in cobol program?

692


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1785


How arrays can be defined in COBOL?

667


What are the different rules to perform a Search?

619


What the difference is between continue and next sentence?

665


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1234


How many sections are there in data division in COBOL?

680


How do u write test cases?

1642