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 is a page in db2?
Why db2 is called db2?
What are the contents of a dclmgen?
what is the role of the cursor in db2?
What are union and union all?
What is role in db2?
How do I import data from excel to db2?
What is netezza database?
What are the uses of db2 optimizer?
How can we read records for specific member in CL? AND rpg?
What is a system catalog table in db2?
How do I delete a table in db2?
Explain packages.
Explain about rct.
What is catalog database in db2?