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

Difference in Using Copy books and INCLUDE library


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srishyla_ks

New User


Joined: 07 Jun 2005
Posts: 2

PostPosted: Thu Jun 16, 2005 1:02 pm
Reply with quote

hi,
i want know the difference between using copy books (Copy statement) and using includes (with macreo -inc).
and which one is better..
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu Jun 16, 2005 1:39 pm
Reply with quote

As far as efficiency is concern INC macro runs faster than COPY command .
Hence -INC <Include Name> will be better than COPY <Include Name>.

When copy command is used while compiling the program probably you need to mention the library where that include is present. Where as INC macro takes care of pulling the include from appropriate place, like if it is present in corrosponding WIP or general WIP or from production.
I am not sure of this difference let me know if i am wrong.
Back to top
View user's profile Send private message
sudheer648

New User


Joined: 23 May 2005
Posts: 97
Location: Chennai

PostPosted: Thu Jun 16, 2005 3:04 pm
Reply with quote

hi srishyla_ks,

You can replace a particular declartion in the copybook with COPY REPLACE replace command which you cannot achive with INC.

I am not sure about the which one would be faster COPY/INC could INC faster as Kanak told.
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 -> COBOL Programming

 


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 Calling an Open C library function in... CICS 1
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top