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
 

 

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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


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