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 used space for tablespace and index space in db2

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

New User


Joined: 27 Mar 2011
Posts: 4
Location: India

PostPosted: Sun May 22, 2011 5:44 pm    Post subject: how to find used space for tablespace and index space in db2
Reply with quote

Hi,

i want to know used space for all tablespaces and index spaces in db2 v9.1.To check often i would like to schedule a job for finding the used space on weekly basis.

Can any one please help on this to fix these challenges.

Thanks in advance
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon May 23, 2011 1:25 am    Post subject:
Reply with quote

Hello,

Learning to use our forum SEARCH wil often get answers much faster than waiting for someone to post an answer. . .

Try here and see if this helps:
http://ibmmainframes.com/viewtopic.php?t=41149

For figuring usage by week you will most likely need to implement a bit of your own code.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon May 23, 2011 12:57 pm    Post subject:
Reply with quote

You can see the used space in 3.4 option by specifying the LDS data set for the table space in which the table is defined. Assuming One table is defined in one table space.
Back to top
View user's profile Send private message
hari korrapati

New User


Joined: 27 Mar 2011
Posts: 4
Location: India

PostPosted: Mon May 23, 2011 11:31 pm    Post subject: Reply to: how to find used space for tablespace and index sp
Reply with quote

hi,

Thanks for info....Actually this is not my issue...mine is i want to find for all table spaces size on weekly basis to prevent some job failures by scheduling any job.This is how i need solution.

can any one give some suggestions on this.

Thanks in Advance
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon May 23, 2011 11:33 pm    Post subject:
Reply with quote

Hello,

Quote:
can any one give some suggestions on this.

I believe we already did this. . .

Capture the space used every day or every week and save it to a file.

Each week run your own code to subtract the differences to show the additional usage.
Back to top
View user's profile Send private message
hari korrapati

New User


Joined: 27 Mar 2011
Posts: 4
Location: India

PostPosted: Tue May 24, 2011 12:13 am    Post subject: Reply to: how to find used space for tablespace and index sp
Reply with quote

Hi Dick,

can you give me some clarification on how to find all tablespaces sizes.since in my project i have huge number of tablespaces.

is there any REXX or JCl to know used space....if so colud you please tell me

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

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Tue May 24, 2011 10:22 am    Post subject:
Reply with quote

Quote:
is there any REXX or JCl to know used space


I am really struggling to understand what you mean by this. Rexx is a programming language - it knows as much about space as an earthworm. JCL is Job Control Language - it tells the operating systemabout the resources your job needs - it knows as much about space as a centipede.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 24, 2011 7:25 pm    Post subject:
Reply with quote

Hello,

This also happens when someone completely new to IT is told to do a "mainframe thing" with a "rexx" or a "jcl" (usually by a marginally competent instructor or work leader). . .

Quote:
is there any REXX or JCl to know used space
Someone, somewhere has probably implemented rexx code to do what you are looking for. No one has ever done this with JCL.
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 SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am


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