Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
difference between copy and include in db2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
ravikumar.achi

New User


Joined: 02 Jun 2005
Posts: 1
Location: bangalore

PostPosted: Fri Jun 03, 2005 12:34 am    Post subject: difference between copy and include in db2
Reply with quote

hi
i want to know , what is the difference between copy and include statements in DB2.
Back to top
View user's profile Send private message
References
anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Fri Jun 03, 2005 1:33 am    Post subject:
Reply with quote

Quote:
what is the difference between copy and include statements in DB2.


We can't use copy for DB2 statements.
Back to top
View user's profile Send private message
ayyappa_22523
Warnings : 2

New User


Joined: 02 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Sat Jun 04, 2005 12:18 pm    Post subject:
Reply with quote

copy is used to copy pre-defined member text and include is uesd to user defined members.

but both r same
Back to top
View user's profile Send private message
sarma Kappagantu

New User


Joined: 17 Mar 2005
Posts: 22
Location: Bangalore

PostPosted: Sun Jun 05, 2005 4:34 am    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1