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 between copylib & include in Cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Difference between copylib & include in Cobol
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    Post subject: Difference between copylib & include in Cobol
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    Post subject: Re: Difference between copylib & include in Cobol
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    Post subject: Re: Difference between copylib & include in Cobol
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: 2360
Location: Israel

PostPosted: Wed Feb 22, 2006 2:22 pm    Post subject:
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    Post subject:
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    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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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