Difference between COPY and ++INCLUDE stmts



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Difference between COPY and ++INCLUDE stmts

Postby onkarnath » Wed Jan 23, 2008 3:10 pm

what is the difference between in using COPY and ++INCLUDE stmts in a cobol pgms?
and also give the difference b/w ++include and include++
onkarnath
 
Posts: 4
Joined: Wed Jan 23, 2008 11:44 am
Has thanked: 0 time
Been thanked: 0 time

Re: Difference between COPY and ++INCLUDE stmts

 

Re: Difference between COPY and ++INCLUDE stmts

Postby shriram_j » Wed Jan 23, 2008 11:48 pm

To my experience i came to know that copy will expand the member at the time of compilation, and include only at the time of execution. And the other thing i have no idea.

Thanks
shriram
shriram_j
 
Posts: 2
Joined: Wed Jan 16, 2008 9:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Difference between COPY and ++INCLUDE stmts

Postby MrSpock » Thu Jan 24, 2008 12:57 am

COPY is opened by COBOL compiler.
++INCLUDE is a Panvalet command to include data into a source library.
INCLUDE is opened by DB2 pre-processor.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post