IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

difference between copy and include in db2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravikumar.achi

New User


Joined: 02 Jun 2005
Posts: 1
Location: bangalore

PostPosted: Fri Jun 03, 2005 12:34 am
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
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Fri Jun 03, 2005 1:33 am
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
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
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top