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
 
Two DCLGENs for a DB2 table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Two DCLGENs for a DB2 table
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    Post subject: Reply to: Two DCLGENs for a DB2 table
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    Post subject:
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

Site Director


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

PostPosted: Sat Feb 28, 2009 12:27 am    Post subject:
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    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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

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