I have a SQL query (that calls a stored proc) in a copybook. In a particular paragraph I gave "COPY <copybook name>" and it compiled fine.
My doubt is - The SQL statements should be INCLUDed and not COPYed.
Can you please explain how the pre-compiler is able to expand the query even though it is used with COPY statement.
Thanks in advance,