View previous topic :: View next topic
|
Author |
Message |
ravikumar.achi
New User
Joined: 02 Jun 2005 Posts: 1 Location: bangalore
|
|
|
|
hi
i want to know , what is the difference between copy and include statements in DB2. |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Quote: |
what is the difference between copy and include statements in DB2. |
We can't use copy for DB2 statements. |
|
Back to top |
|
|
ayyappa_22523 Warnings : 2 New User
Joined: 02 Jun 2005 Posts: 36 Location: Hyderabad
|
|
|
|
copy is used to copy pre-defined member text and include is uesd to user defined members.
but both r same |
|
Back to top |
|
|
sarma Kappagantu
New User
Joined: 17 Mar 2005 Posts: 22 Location: Bangalore
|
|
|
|
Copy is a COBOL verb. It is expanded by COBOL compiler. Where as INCLUDE is a DB2 pre-compiler command and expands the included copybook, before the COBOL compiler is invoked.
Expansion of the copybook before COBOL compiler starts it's job, allows the use of DCLGEN variables (which are generally used INCLUDED), to be used by the COBOL compiler, without complaining that these variables are not defined.
Regards,
Sarma. |
|
Back to top |
|
|
|