mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Raj,
If I'm reading your post correctly, the answer is that the copy stmt basically moves text from the copylib to the source pgm at compile time.
So, the text could contain data definitions or executable code or comments. So long as the text is syntactically correct, the pgm will compile successfully.
Copy stmts are also permitted in the COBOL file section. I've seen FD stmts included that way. I'm not sure about using COPY in any of the earlier sections/divisions. |
|