View previous topic :: View next topic
|
Author |
Message |
mandyzzzz
New User
Joined: 04 Jul 2005 Posts: 23
|
|
|
|
Hi all
What is the technical difference between COPY and INC ? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The COPY verb is used to copy valid COBOL language constructs at the point of COPY. Since this is a compilation stage activity the actual copying is done by the cobol compiler.
An SQL INCLUDE on the other hand is used to copy DCLGEN members into the host language. This is done by the SQL precompiler from your DCLGEN library. |
|
Back to top |
|
|
tetrion
New User
Joined: 22 May 2005 Posts: 8
|
|
|
|
Hi,
The main difference between COPY and INC is that
The member that is included becomes available to the precompilation phase which enables the varibles in the included members to be used in SQL statements.
bye |
|
Back to top |
|
|
mandyzzzz
New User
Joined: 04 Jul 2005 Posts: 23
|
|
|
|
Hi
Thanks for help.
But in a ordinary cobol program..where there is no DB2 access ...then what is the difference between copy and inc?
I have seen normal cobol copybooks to be added both via copy and inc.
Kindly elaborate.
Thanks again! |
|
Back to top |
|
|
mandyzzzz
New User
Joined: 04 Jul 2005 Posts: 23
|
|
|
|
I just checked a previous topic with same subject.
The difference seems to be when there is need for precompilation....so can it be concluded that for an ordinary cobol program without DB2 copy and inc means exactly the same thing??????????? |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Yes, Mandyzz. |
|
Back to top |
|
|
|