Page 1 of 1

Difference between COPY and ++INCLUDE stmts

PostPosted: Wed Jan 23, 2008 3:10 pm
by onkarnath
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++

Re: Difference between COPY and ++INCLUDE stmts

PostPosted: Wed Jan 23, 2008 11:48 pm
by shriram_j
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

Re: Difference between COPY and ++INCLUDE stmts

PostPosted: Thu Jan 24, 2008 12:57 am
by MrSpock
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.