Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What does we INCLUDE in DCLGEN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
praneethgokul

New User


Joined: 06 May 2005
Posts: 20
Location: Bangalore

PostPosted: Thu Sep 01, 2005 7:23 pm    Post subject: What does we INCLUDE in DCLGEN
Reply with quote

Hi all,

What does we INCLUDE in DCLGEN ?

OR

What does DCLGEN contains?

Clarify me

Thanks in advance
Back to top
View user's profile Send private message

radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Thu Sep 01, 2005 8:21 pm    Post subject:
Reply with quote

When you use DCLGEN to generate a table's declaration, DB2 gets the relevant information from the DB2 catalog, which contains
information about the table's definition and the definition of each column within the table.

DCLGEN generates a table declaration and puts it into a member of a partitioned data set that you can include in your program.
DCLGEN, the declarations generator supplied with DB2, produces a DECLARE statement you can use in a C, COBOL, or PL/I program, so that you do not need to code the statement yourself.
When you use DCLGEN to generate a table's declaration, DB2 gets the relevant information from the DB2 catalog, which contains
information about the table's definition and the definition of each column within the table.
DCLGEN uses this information to produce a complete SQL DECLARE statement for the table or view and a matching PL/I, or C structure declaration or COBOL record description. You can use DCLGEN for table declarations only if the table you are declaring already exists.

hope this helps.
pls refer manual for more informations.
Back to top
View user's profile Send private message
Anbudan

New User


Joined: 07 Sep 2005
Posts: 26
Location: Germany

PostPosted: Wed Sep 07, 2005 4:51 pm    Post subject:
Reply with quote

Hi Praneeth,

Practically,

If you go to DCLGEN screen, it ask the table name. If u give the table name and other table info, it create the dclgen. This dclgen was put in PDS(the pds name, u have to give, while fill the DCL screen)

The pds contains teh column & row details of the table and the cobol variables for the 'table-column'


U just copy this pds into ur cobol programm.


Need mor e info - don't hesitate to contact




Anbudan
Back to top
View user's profile Send private message
mubashir.surury

New User


Joined: 29 Sep 2005
Posts: 23
Location: Pune

PostPosted: Fri Sep 30, 2005 7:41 pm    Post subject: Re: What does we INCLUDE in DCLGEN
Reply with quote

hi all;

can i use COPY command instead of the INCLUDE statement,if not, then please justify.

icon_exclaim.gif
Back to top
View user's profile Send private message
ak1972

New User


Joined: 25 Aug 2005
Posts: 7

PostPosted: Sat Oct 01, 2005 4:36 am    Post subject: Re: What does we INCLUDE in DCLGEN
Reply with quote

INCLUDE is needed for the DB2 Pre-Compiler.
Remember that the DB2 Pre-Compiler executes *before* the Cobol Compiler.
So if you have variables in a copybook member, the Cobol COPY Command will have no effect; the DB2 Pre-Compiler will not recognize those variables and your compilation will fail.
Back to top
View user's profile Send private message
mubashir.surury

New User


Joined: 29 Sep 2005
Posts: 23
Location: Pune

PostPosted: Mon Oct 03, 2005 1:21 pm    Post subject: Re: What does we INCLUDE in DCLGEN
Reply with quote

thanks for clearing my doubt.
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 Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm
No new posts Case insenstive in INCLUDE Condtion smileseenu DFSORT/ICETOOL 2 Mon Feb 15, 2016 8:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us