|
View previous topic :: View next topic
|
| Author |
Message |
Prajesh_v_p
Active User

Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
Hi all,
Is there any advantage in including the table dclgen that a cobol program accesses, but not using the dclgen variables?
I read from DB2 magazine that "The DB2 Precompiler uses the top part of the DCLGEN to validate the SQL syntax"..Is this true always?
Thanks in advance.. |
|
| Back to top |
|
 |
raghunathns
Active User
.jpg)
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
| cobol fields and Declare table will be there in the dclgen |
|
| Back to top |
|
 |
bonniem
New User

Joined: 09 Aug 2005 Posts: 67
|
|
|
|
| Yes it is required. Precompiler checks syntax of the queries based on the DCLGEN. For example if you have wrong columns in the query that will be reported. If dont include the DCLGEN of a table that you are using you will get return code 4 in the precompile. |
|
| Back to top |
|
 |
NIRAJ BILGE
New User
.jpg)
Joined: 05 Aug 2006 Posts: 11
|
|
|
|
hi!
as far my knowledge is concern, dclgen is used to define host variable.
and they are included in working storage section in cobol pgm while
processing sql queries. |
|
| Back to top |
|
 |
Muthukumar.PLindia
New User

Joined: 03 Jul 2006 Posts: 51 Location: Chennai
|
|
|
|
| Bonniem is very correct |
|
| Back to top |
|
 |
|
|