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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are host variables in db2?

798


What is cloudant database?

834


What is null indicator in db2?

831


Give the name of some fields form sqlca.

812


List down the types of triggers in the db2 database?

767


SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected

11360


What is a db2 package?

783


Mention the different locking levels that are available in db2.

839


What is the information associated with sysibm.syslinks table?

871


How can deadlocks be resolved?

725


Can one database have multiple instances?

786


List out the buffer pools in db2

817


What is db2 connect?

785


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3321


What is the difference between using bind () and rebind () methods of naming class?

1063