Is DECLARE TABLE in DCLGEN necessary? Why it used?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What are catalog tables in db2?
DB2 is a A) data base/data communication system B) data base C) RDBMS D) Programming language
What is the meaning of -805 SQL return code?
What os does db2 run on?
How do I add a column to a table in db2?
What is the difference between CS and RR isolation levels?
Outputs of explain are with matchcols = 0. What does this signify?
List out the buffer pools in db2
how can we retrieve the 100 records of the file ?
What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;
what is copy pending and check pending ?
What is Declaration Generator(DCLGEN)?