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: 287
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


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