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 |
in column y record abc.v abc.s xyz.j abc.h i wan only abc columns how to retrieve thi records
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 .
What is nvl in db2?
What r the comman abends in db2, jcl and cobol???????
Can DASD types assigned to storage groups be intermixed (i.e., 3350s and 3380s)?
How to view db2 table structure?
How does DB2 store NULL physically?
How do I delete a table in db2?
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 ?
what is the maximum number of tables that can be joined ?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
What is the physical storage length of time data type?