View previous topic :: View next topic
|
Author |
Message |
hari korrapati
New User
Joined: 27 Mar 2011 Posts: 4 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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:
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 |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
hari korrapati
New User
Joined: 27 Mar 2011 Posts: 4 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
hari korrapati
New User
Joined: 27 Mar 2011 Posts: 4 Location: India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|