Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 288
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us