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 does db2 blu stand for?
What is role in db2?
Why select is not preferred in embedded sql programs?
What is access path in db2?
What is temporal table in db2?
Which command is used to connect to a database in DB2 ? Give the Syntax.
What kind of database is db2?
Can we delete records from view?
What is the difference between nvl and coalesce?
How will you return the number of records in table?
What is difference between isnull and coalesce?
What is dpf in db2?
What is a bind in db2?
What is null in db2?
How to find the number of rows in a db2 table?