MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Difference between ++include and copy

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Fri Dec 27, 2002 9:25 am    Post subject: Difference between ++include and copy Reply with quote

Could you please tell me what is the difference between ++include and copy statements in Cobol programs.

regards
Ranjish.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Dec 27, 2002 9:44 am    Post subject: Reply with quote

Ranjish,

COPY is a native COBOL syntax for pulling in small to medium pieces of source code which can be used across.examples can be common abend routines and file layouts. The only disadvantage is that the copy books will be expanded only during compilation.

++INCLUDE does the same thing but it is a feature of CA-Panvalet.The advantage of using them is it expands the contents of the include member in the browse or edit mode.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ed Goodman
Beginner


Joined: 12 Dec 2002
Posts: 10
Topics: 2

PostPosted: Fri Dec 27, 2002 1:42 pm    Post subject: Reply with quote

This question looks familiar. Was this also posted at the other helpboard?? It's the second one I've seen like this.
Back to top
View user's profile Send private message
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Sat Dec 28, 2002 12:09 am    Post subject: Reply with quote

Kolusu, thanks for the reply. But still I have one doubt remaining. You have mentioned that the ++include is a feature of CA-Panvalet. But I have seen the statement even in installations where they dont have CA-Panvalet. In same programs, they have used both Copy and ++include.
Could you please throw some light on this?

Thanks in advance
Ranjish.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Sat Dec 28, 2002 6:52 am    Post subject: Reply with quote

Ranjish,


I guess you might have seen it as

Code:

EXEC SQL
         INCLUDE SQLCA
END-EXEC

or
Code:

EXEC SQL
         INCLUDE TABLE
END-EXEC


which will work even without panavalet.

But as for as I know ++INCLUDE is only valid for with CA-PANAVALET.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zatlas
Beginner


Joined: 17 Dec 2002
Posts: 43
Topics: 4

PostPosted: Sun Jan 05, 2003 7:25 pm    Post subject: Reply with quote

Hi
The bottom line is:
COPY is part of COBOL and using it making your program portable (like from mainframe to MicroFocus, Fujitsu or The Kompany's Kobol)
++INCLUDE is a feature of some CA products and confine you to use CA...
ZAtlas
Back to top
View user's profile Send private message
mahesh
Beginner


Joined: 09 Dec 2004
Posts: 2
Topics: 0

PostPosted: Thu Dec 09, 2004 4:50 am    Post subject: Reply with quote

Hi,

I agree with zatlas answer for the difference between copy and ++include.
++include has been used in endevor installed workshop apart from panvalet installed workshop.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group