MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to know the dataset name of Tablespace name thru FA

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Mon Jul 07, 2008 2:49 pm    Post subject: How to know the dataset name of Tablespace name thru FA Reply with quote

How to know the dataset name of the tablespace name using File-aid or R/C Query?


Thanks in advance
_________________
Satya
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Tue Jul 08, 2008 10:34 am    Post subject: Reply with quote

satyenderd,

Query the sysibm.systables
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Eric.C.Bakke
Beginner


Joined: 14 Jul 2008
Posts: 15
Topics: 0
Location: Plano, TX

PostPosted: Mon Jul 14, 2008 12:23 pm    Post subject: Reply with quote

If you're talking about the linear VSAM dataset name of the tablespace, this can't be obtained from a simple query of sysibm.systables as stated by kolusu Smile .

The format of the VSAM Cluster dataset is as follows:

catname.DSNDBC.dbname.spname.I0001.Annn
~ or ~
catname.DSNDBC.dbname.spname.J0001.Annn

You can only get the 3rd and 4th nodes of the dataset which are the dbname, and tsname columns in sysibm.systables for a given table where name = 'your table name'.

To get the 1st node, query vcatname from sysibm.systablepart for the dbname and tsname found in sysibm.systables. The 2nd node is always DSNDBC for the cluster and DSNDBD for the data.

The 5th node is set to 'I0001' initially but can be renamed by DB2 Re-org Tablespace utilities during the switch phase to 'J0001' if the tablespace was online re-organized.

The last (6th) node of the dataset varies depending on the type of tablespace (simple, segmented, or partitioned). For simple and segmented, it will always start with 'A001' and increment by 1 depending on the amount of data in the tablespace.

Hope that helps and is what you were looking for.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group