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

in column y record abc.v abc.s xyz.j abc.h i wan only abc columns how to retrieve thi records

2 Answers   IBM,


My cobol program(not having any sql statements) is calling another cobol program ( having sql statements), what is needed for compilation and run in jcls .

3 Answers   Cap Gemini, RBS,


What is nvl in db2?

0 Answers  


What r the comman abends in db2, jcl and cobol???????

0 Answers   Mphasis,


Can DASD types assigned to storage groups be intermixed (i.e., 3350s and 3380s)?

1 Answers  






How to view db2 table structure?

0 Answers  


How does DB2 store NULL physically?

2 Answers  


How do I delete a table in db2?

0 Answers  


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

0 Answers   JPMorgan Chase,


what is the maximum number of tables that can be joined ?

8 Answers   IBM, TCS,


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

0 Answers   IBM,


What is the physical storage length of time data type?

0 Answers  


Categories