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
 
how to identify the records in a particular partition

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

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Thu Jun 26, 2008 11:45 am    Post subject: how to identify the records in a particular partition
Reply with quote

Hi,

We are having a DB2 table with 64 partitions, i want to know the number of records in each partition, could any body help me how to write a
query to identify the number of records in each partition?


thanks,
Nagendran.R
Back to top
View user's profile Send private message

plkanth_526

New User


Joined: 01 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Thu Jun 26, 2008 2:18 pm    Post subject: Reply to: how to identify the records in a particular partit
Reply with quote

You can get the information from RTS tables.Please use the below query to get the number of rows present partition wise.

SELECT TOTALROWS
FROM "SYSIBM".TABLESPACESTATS
WHERE
DBNAME = 'xxxx'
NAME = 'xxxx '
PARTITION = xx with ur;
Back to top
View user's profile Send private message
am_ne

New User


Joined: 24 Mar 2007
Posts: 25
Location: Bangalore

PostPosted: Mon Jun 30, 2008 6:17 pm    Post subject:
Reply with quote

Hi,

If RTS tables are not enabled then you have to know the partitioning logic.

The partitioning logic of the table based on values of one/multiple column.
Once you know the partitioning column name and the maximum values for your partitions, you can write the query easily.

Thanks,
Amit
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 Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am

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