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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cobol db2?

740


How to rename a table in DB2 ?

817


What is the default page size of buffer pools?

867


What is null value in db2?

757


In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

796


What is the connection string to connect to the DB2 Database ?

854


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

832


What are concurrency issues?

810


What do you mean by commit and rollback?

775


What is the use of value function?

842


How to find the maximum value in a column in the db2 database?

822


How many databases can be created inside an instance in db2 ?

808


run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

4056


What is catalog database in db2?

863


What are host variables in db2?

810