we can code COPY DCLGEN or INCLUDE DCLGEN,
At which stage of the precompilation , dclgen get expanded
if we write 1) copy
2) include
one question about dclgen..
Is it mandatory to use declare table in dclgen..
I think no...but
it will be used by the precompiler to validate the table
name,column name etc..,
can one clear my doubt ..is it necessary to include
declare table or not?
Answer Posted / prashanth
The copy books are expanded only in the compilation phase
of the application execution. But we would need the details
from DCLGEN in the pre-compilation phase, wherein the DB2
statements in the COBOL application is separated and put in
a DBRM. The equivalent COBOL ‘CALL’ statements are replaced
for the DB2 statements in the COBOL code. Then the
compilation of the COBOL and binding of the DBRM is done,
before being linked and executed.
Hence the INCLUDE statement is used instead of COPY
statement, an adaptation for the pre-compilation stage. The
same reason applies to the usage of INCLUDE in case of
SQLCA inclusion.
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What r the comman abends in db2, jcl and cobol???????
What does db2 plan contain?
Explain in detail about buffer manager and its functionalities?
Which components manage deadlocks in db2?
Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?
What is db2? Explain.
Can we delete records from view?
How can you quickly find out the # of rows updated after an update statement?
How to fetch the last row from the table in SQL (db2)?
What is copy pending status in db2?
What is catalog database in db2?
Give the name of some fields form sqlca.
What is the physical storage length of the data types date, time, and timestamp?
What is ibm db2 used for?
What is database alias db2?