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

Difference between copylib & include in Cobol


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

New User


Joined: 22 Feb 2006
Posts: 2

PostPosted: Wed Feb 22, 2006 12:16 pm
Reply with quote

Hi all,

I want to know what is the exact difference between copylib & include in cobol.

Thanks & Regards
Priya
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Wed Feb 22, 2006 1:10 pm
Reply with quote

Include will expand during precompile stage. db2 layouts

copy expands during compile stage. cobol layouts.
Back to top
View user's profile Send private message
unni_nss

New User


Joined: 20 Sep 2005
Posts: 19

PostPosted: Wed Feb 22, 2006 1:26 pm
Reply with quote

actaually,
copylib means copybooklibrary in Mainframe environment,like proclib.so,its a library name.And INCLUDE is jcl statement like JOB,EXEC etc:
In cobol there is a COPY statement and in jcl it's INCLUDE stmt.
let me know,if i am wrong.
Back to top
View user's profile Send private message
Priya Rathi

New User


Joined: 22 Feb 2006
Posts: 2

PostPosted: Wed Feb 22, 2006 2:04 pm
Reply with quote

Hi,

Thanks Raghunathns for giving answer.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 22, 2006 2:22 pm
Reply with quote

Actually, INCLUDE is a SQL statement, as you can see in the fine manual.

O.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Fri Mar 03, 2006 7:27 pm
Reply with quote

INCLUDE is no cobol statement,
it is like a copy statement, but using
a copybook, generated with dclgen.
at the end, you will have the same
a copy structure....
you just don't have the ability with the REPLACE phrase...

martin9
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top