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

Help regarding DCLGEN effectiveness on DB2 ?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravivv

New User


Joined: 25 Jan 2006
Posts: 3
Location: Hyderabad

PostPosted: Wed Feb 28, 2007 5:39 pm
Reply with quote

Can any one help regarding DCLGEN effectiveness on DB2 ?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Feb 28, 2007 6:31 pm
Reply with quote

Could you please elaborate a little more?
I didn't get your question. icon_question.gif
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Feb 28, 2007 7:39 pm
Reply with quote

DCLGEN will generate COBOL variable map for the table you want to access. The picture caluse of the variable will be decided upon the type of variable in table.
For example:
CHAR 20 in Db2 ,will be PIC X(20) in COBOL
Back to top
View user's profile Send private message
sachin_star3
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 78
Location: pune

PostPosted: Sun Mar 04, 2007 5:28 am
Reply with quote

DCLGEN MEANS :DECLARATION GENERATOR
This is use when you go for db2-cobol prorame
The Dclgen create the host variable structure
Host variable nothing but the variable use for passing or taking the input value it alwyas represent :host variable in procedure division
dclgen is not compulsory thing you can also write the host variable manually but for exact struture generation for checking for column the dclgen is easy way

from -
sachin borase
pune
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Mon Mar 05, 2007 10:18 pm
Reply with quote

yes without a host program variable cobol will not be able to handle the data in the table fields of data base
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Wed Mar 07, 2007 2:32 pm
Reply with quote

For Transfter or Updating the data in DB2 tables we need Host varibles for requiresd DB2 tables. This is achieved in 2 ways.

1) Declaring manually in the Working Storage section of Data Division.
2) Using DCLGEN

In the first way It is a bit difficult to declare for big tables, By using DCLGEN we can escape from unnecessary errors.

If we use DCLGEN, In Precompilation process also It is easy to expand the cobol declaration and also to compare all the datatypes of table fields and cobol fields.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Unable to view Unloaded file using DC... DB2 4
No new posts Expand COBOL copybooks and DCLGEN COBOL Programming 17
No new posts DCLGEN change DB2 1
No new posts USING DCLGEN as INPUT LAYOUT but will... Mainframe Interview Questions 2
No new posts Generating Multiple DCLGEN's DB2 4
Search our Forums:

Back to Top