IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Advantage in including the table dclgen that a cobol program


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Thu Aug 10, 2006 7:26 pm
Reply with quote

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
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Thu Aug 10, 2006 11:10 pm
Reply with quote

cobol fields and Declare table will be there in the dclgen
Back to top
View user's profile Send private message
bonniem

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Fri Aug 11, 2006 11:02 am
Reply with quote

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
View user's profile Send private message
NIRAJ BILGE

New User


Joined: 05 Aug 2006
Posts: 11

PostPosted: Tue Aug 15, 2006 11:20 pm
Reply with quote

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
View user's profile Send private message
Muthukumar.PLindia

New User


Joined: 03 Jul 2006
Posts: 51
Location: Chennai

PostPosted: Fri Aug 18, 2006 9:54 pm
Reply with quote

Bonniem is very correct
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Big Five Personality Test in COBOL - ... COBOL Programming 0
No new posts I wrote a Hallmark Movie Plot Generat... COBOL Programming 0
No new posts COBOL Text Adventure Engine for TK4- ... COBOL Programming 0
Search our Forums:


Back to Top