IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Feb 04, 2016 9:46 am
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
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

Global Moderator


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

PostPosted: Thu Feb 04, 2016 8:20 pm
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: 1281
Location: Belgium

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

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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top