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
 
New DB2 tables creation

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

New User


Joined: 24 May 2010
Posts: 91
Location: Pune

PostPosted: Tue Feb 02, 2016 7:00 pm    Post subject: New DB2 tables creation
Reply with quote

Hi All,

I want to create a DB2 table which will have columns like Emp No, Seq No, Acct No, Rate, Hours Worked, etc. This table will be loaded monthly using an input file which will have Emp No, Seq No and Acct No same and other values getting changed/updated OR New Emp No, SeqNo being introduced.

I want to append the new data everytime it is loaded.

Please let me know how to come up with Key (Primary key) definitions along with the indexes for defining this table.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1894
Location: UK

PostPosted: Tue Feb 02, 2016 8:24 pm    Post subject:
Reply with quote

Ask your DBA - indicies depend on usage.
Back to top
View user's profile Send private message
kishpra

New User


Joined: 24 May 2010
Posts: 91
Location: Pune

PostPosted: Tue Feb 02, 2016 8:50 pm    Post subject: New DB2 tables creation
Reply with quote

Thanks Nic.

Can you please let me know some of the things that needs to be taken care when defining a table without primary key since the data needs to be appended every time. Also how to come uo with indexes for the same to improve the performance.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Feb 02, 2016 8:56 pm    Post subject: Reply to: New DB2 tables creation
Reply with quote

I think re-read the first three words of Nic's response.

What you are doing, how you are doing it, and whether you should be doing it, and how it fits into your DB2 is all related to your site.
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 REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am

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