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
 

 

How to find Table-space and Index-space files for a table?

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

New User


Joined: 20 Jun 2015
Posts: 26
Location: INDIA

PostPosted: Wed Feb 03, 2016 6:16 pm    Post subject: How to find Table-space and Index-space files for a table?
Reply with quote

Hi all,

I have a huge list of tables for which I am required to find the table-space and index-space files. Currently I am using BMC tool to find this information.

There are SYSIBM.SYSTABLESPACE and SYSIBM.SYSINDEXES tables. I believe there is a pattern for the names of relevant VSAM files. If there is a method I can use these details from these tables and form the file names, it will be great. I wouldn't argue to stick to my assumption if you advise me another efficient way to achieve this.

Kindly share your expertise.

Thanks,
Sivaguru
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1530
Location: Andromeda Galaxy

PostPosted: Thu Feb 04, 2016 9:46 am    Post subject:
Reply with quote

Talk to your DBA they should know the HLQ of those datasets.
Also, There should be an option within BMC to find those filenames. I am not sure though.

But, having said that just curious what are going to do knowing the file names.
Back to top
View user's profile Send private message
venksiv

New User


Joined: 20 Jun 2015
Posts: 26
Location: INDIA

PostPosted: Thu Feb 04, 2016 6:55 pm    Post subject:
Reply with quote

Thanks for your suggestion, Pandora-Box.

I am going to calculate the space occupied by these particular tables for another analysis.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1530
Location: Andromeda Galaxy

PostPosted: Thu Feb 04, 2016 8:20 pm    Post subject:
Reply with quote

I get it the EXTENTS will be needed and watched by DBAs regular intervals

As said get in touch with DBA they should be able to assist you
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1278
Location: Belgium

PostPosted: Fri Feb 12, 2016 5:40 pm    Post subject:
Reply with quote

http://itknowledgeexchange.techtarget.com/itanswers/tables-in-db2-z-os/

Quote:
high level qualifier . DSNDBx . data base name . space name . I000x. A00x
where
high level qualifier depends on your installation and VCAT name, and DB2 STOGRP definitions
Back to top
View user's profile Send private message
venksiv

New User


Joined: 20 Jun 2015
Posts: 26
Location: INDIA

PostPosted: Fri Feb 12, 2016 9:08 pm    Post subject: Reply to: How to find Table-space and Index-space files for a table?
Reply with quote

Hi GuyC,

100% true. To find this, I took 4-5 table names, found their table space names from systables and compared to the dataset BMC tool displayed for 'ds' line command. That pattern matches to your answer.

Thank you so much for your response. This is brilliant!

I will have to do the same for index space datasets and use it for further analysis.
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 Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


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