View previous topic :: View next topic |
Author |
Message |
Ranjish Beginner

Joined: 22 Dec 2002 Posts: 64 Topics: 28 Location: Chennai
|
Posted: Fri Dec 27, 2002 9:25 am Post subject: Difference between ++include and copy |
|
|
Could you please tell me what is the difference between ++include and copy statements in Cobol programs.
regards
Ranjish. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Fri Dec 27, 2002 9:44 am Post subject: |
|
|
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 |
|
 |
Ed Goodman Beginner
Joined: 12 Dec 2002 Posts: 10 Topics: 2
|
Posted: Fri Dec 27, 2002 1:42 pm Post subject: |
|
|
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 |
|
 |
Ranjish Beginner

Joined: 22 Dec 2002 Posts: 64 Topics: 28 Location: Chennai
|
Posted: Sat Dec 28, 2002 12:09 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Sat Dec 28, 2002 6:52 am Post subject: |
|
|
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 |
|
 |
zatlas Beginner
Joined: 17 Dec 2002 Posts: 43 Topics: 4
|
Posted: Sun Jan 05, 2003 7:25 pm Post subject: |
|
|
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 |
|
 |
mahesh Beginner
Joined: 09 Dec 2004 Posts: 2 Topics: 0
|
Posted: Thu Dec 09, 2004 4:50 am Post subject: |
|
|
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 |
|
 |
|
|