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 Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

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