Can SQL statements/queries be included in a copybook?

Answer Posted / ekalavya

The DB2 related things have to be included with the pre
compiler directive
EXEC SQL
INCLUDE XYZ
END-EXEC
But not like COPY XYZ.

This is because COPY statements are expended during
Compilation step, but the DB2 related items should be
available in pre-compilation step inorder to create DBRM
module, which is the input for Binding process into
PLAN/PACKAGE.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe major components of db2?

833


Why do chiropractors use drop table?

854


What is a buffer in memory?

776


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

918


What is dbrm?

843


What is the maximum size of varchar data type in db2?

827


How to find the maximum value in a column in the db2 database?

802


What is the role of union all and union

840


What is database reorganization?

808


How many types of page locks can be held in db2?

784


Explain about rct in db2?

852


Give a brief description of db2 isolation levels?

768


Explain the contention situations caused by locks?

777


What is dbrm? What it contains? When it will be created?

773


What is db2 catalog database?

774