Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Advantage in including the table dclgen that a cobol program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Advantage in including the table dclgen that a cobol program
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    Post subject: DCLGEN in Cobol program
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us