If we keep the DCLGEN structure for a table in a copybook
and include it in the COBOL program using the COPY
statement, will there be any impact during compilation or
at any stage of program execution?

Answers were Sorted based on User's Feedback



If we keep the DCLGEN structure for a table in a copybook and include it in the COBOL program usin..

Answer / ajay ahuja

DCLGENs are processed by Precompiler.

So instead of using COPY "DCLGEN Menber", it is required to
use INCLUDE "DCLGEN member".

This is because INCLUDE copybooks are being expanded during
Precompilation and COPY "Member" will be expanded during
compilation.

Is This Answer Correct ?    15 Yes 0 No

If we keep the DCLGEN structure for a table in a copybook and include it in the COBOL program usin..

Answer / tom

DCLGENs need to be processed by the precompiler. The
precompiler will comment out the SQL and insert the
appropriate COBOL definitions.

If the COPY directive is used, the COBOL compiler will flag
the SQL with syntax errors.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is the difference between group by and order by?

2 Answers   IBM, TCS,


What do you need to do before you do EXPLAIN ?

1 Answers  


What are catalog tables in db2?

0 Answers  


how to identify the pseudo conversation by seeing the program

2 Answers   DELL,


what is cursor stability?

2 Answers   IBM,


What is the information associated with sysibm.syslinks table?

0 Answers  


What is deadlock in db2?

0 Answers  


DB2 is a A) data base/data communication system B) data base C) RDBMS D) Programming language

4 Answers   Accenture,


What is copy pending and check pending in db2?

0 Answers  


what is contained in the DB2 node lock file? A) data base names B) data base users names C) license keys D) server names

5 Answers   Accenture,


How can you display the current date & current time ?

7 Answers   Cap Gemini,


What are the full forms of spufi and dclgen and why are they used?

0 Answers  


Categories