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 |
What is explain plan in db2?
when we are tying to update a table having 100 rows. if the program abends when updating 51 row . how to start updating again from the 51 row .what was the logic
Which command is used to connect to a database in DB2 ? Give the Syntax.
Where is the output of EXPLAIN stored?
How is the value function used?
What is the difference between spufi and qmf?
While creating a table, by mistake you have given size of one field as 10. But as per requirement size should be 8. What is your next step?
What is netezza database?
what is Static and dynamic linking
what is the role of the cursor in db2?
What is a db2 table?
Explain the use of the WHERE clause.