Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference in Using Copy books and INCLUDE library

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Difference in Using Copy books and INCLUDE library
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    Post subject:
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    Post subject: Re: Copy books
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. How to save expanded jcl's into one l... enrico-sorichetti CLIST & REXX 13 Thu Jul 27, 2017 2:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us