Can SQL statements/queries be included in a copybook?
Answers were Sorted based on User's Feedback
Answer / tom
Yes, if the copybook is included with the precompiler
directive EXEC SQL INCLUDE. No, if one attempts to include
the copybook with a COBOL COPY directive.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / 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 |
How do you simulate the explain of an embedded sql statement in spufi/qmf?
What is the syntax for creating a table in the db2 database?
What is a LIKE table and how is it created?
What is an instance in db2?
What is a DB2 bind?
How to design maps
what is a plan and how do you refer the plan in the program?
How can you find out the # of rows updated after an update statement?
Explain the use of the WHERE clause.
How would you print the output of an SQL statement from SPUFI?
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2