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
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 |
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 |
Which catalog tables contain authorization information?
How Plan is created while executing the query using SPUFI?
When one binds a PACKAGE ( of a plan ) what package information is stored and where it is stored?
What is concurrency in db2?
How to access db2 tables in mainframe?
how can you access index
i have cobol+ db2 program but it contains n number of subprograms for this how many dbrm members i need to mention in bind process
How can we retrieve the total number of records in RPG & CLLE?
Why do we need reorg in db2?
What is database manager in db2?
How do you select a row using indexes in db2?
how will i display the duplicate record's from a table... i don't want to eliminate ...i want to display the duplicate record...for example in my table i have 10 record's like record no(1,2,3,4,2,9,6,1) in this ...so i want to receive duplicates...