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

Two DCLGENs for a DB2 table


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

New User


Joined: 20 Feb 2006
Posts: 14

PostPosted: Wed Feb 25, 2009 12:48 pm
Reply with quote

Quick question -

Can I have two DCLGENs for a DB2 table.

Let's consider I have a table and I want to use that table in two different scenarios, one for normal fetch & another for multifetch. In that case, for multifetch scenarios, we need to have a array defined in the DCLGEN. So I will have two DCLGENs, one for normal fetch usage and one for multifetch usage.

Note : I dont' want to change the normal fetch DCLGEN since it has been called by many modules. Also I don't want to use the workstorage variables since it is not the standard way of using tables.
Back to top
View user's profile Send private message
Succor

New User


Joined: 20 Feb 2009
Posts: 96
Location: Bangalore :)

PostPosted: Wed Feb 25, 2009 1:51 pm
Reply with quote

Quote:
Can I have two DCLGENs for a DB2 table

I am not sure if you can.
DCLGEN generates a table or view declaration and puts it into a member of a partitioned data set that you can include in your program.

You can use DCLGEN for table declarations only if the table or view that you are declaring already exists.So,you wont be having a DCLGEN to support your multiftech scenario.

Hope this helps.
WTF
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Fri Feb 27, 2009 9:54 pm
Reply with quote

Quote:


Also I don't want to use the workstorage variables since it is not the standard way of using tables.



???????? icon_eek.gif

why dont you term your second one as a COPYBOOK ? [/code]
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 28, 2009 12:27 am
Reply with quote

Hi Ashimer,

Quote:
Also I don't want to use the workstorage variables since it is not the standard way of using tables.
Quote:
???????? icon_eek.gif

Wonder where that belief originated. . . I don't recall seeing a program that did not use ws variables. . . . Maybe some clarification will be posted.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top