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

What is the purpose of rollback and commit?

597


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

7527


Explain in detail about buffer manager and its functionalities?

568


What is lock escalation in db2?

576


What is dclgen in db2?

682






How to find schema of a table in db2?

574


What is view db2?

626


How many databases are there?

594


What is the use of reorg in db2?

612


When reorg is used?

680


is it compulsory commitment control in journal?

2016


What is scrollable cursor in db2?

586


Discuss about db2 bind?

677


What is the use of dclgen in db2?

591


What is the result of open cursor statement?

640