Is DECLARE TABLE in DCLGEN necessary? Why it used?

Answers were Sorted based on User's Feedback



Is DECLARE TABLE in DCLGEN necessary? Why it used?..

Answer / obularaju

It not necessary to have DECLARE TABLE statement in
DCLGEN. This is used by the pre-compiler to validate the
table-name, view-name, column name etc., during pre-compile

Is This Answer Correct ?    8 Yes 1 No

Is DECLARE TABLE in DCLGEN necessary? Why it used?..

Answer / abhishek singh

DECLARE TABLE, that is table structure of DCLGEN is NOT really needed for pre-compilation. But if it is used, then any misspelled table name, column names are trapped in pre-compilation stage itself.

Is This Answer Correct ?    0 Yes 0 No

Is DECLARE TABLE in DCLGEN necessary? Why it used?..

Answer / satty

yes, it is necessary to have declare table in dclgen.
without declaring the table we cant able to define the host
variable of what data type and length of data type.... the
not needed part is
dclgen table(xxxx)
library(yyyy)
action(add)
quote
this is not needed because the declare and host variable
definition can be hard coded into the pgm.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More DB2 Interview Questions

What is a cursor and what is its function?

2 Answers  


What are the disadvantages of PAGE level lock?

3 Answers  


what is commit & rollback? When and where is used while compiling a cobol-db2 program?

2 Answers  


What is a predicate?

1 Answers  


What is correlation names?

1 Answers  






What is db2 and what is the use of db2 optimizer?

0 Answers  


What is dynamic SQL?

1 Answers   ADP,


How to update more then one record using update?

5 Answers   IBM,


define clustering index.

0 Answers  


DB2: A calls B once sucessfull and second time when it calls says curson is open why is it so?

1 Answers   IBM,


how to resolve -811 error. give clear explination

4 Answers   IBM,


What is db2 stogroup?

0 Answers  


Categories