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

how to find used space for tablespace and index space in db2


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

Moderator Emeritus


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

PostPosted: Mon May 23, 2011 1:25 am
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:
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
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
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

Moderator Emeritus


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

PostPosted: Mon May 23, 2011 11:33 pm
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
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: 2455
Location: Hampshire, UK

PostPosted: Tue May 24, 2011 10:22 am
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

Moderator Emeritus


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

PostPosted: Tue May 24, 2011 7:25 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts force tablespace using LISTDEF input DB2 1
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Cobol file using index COBOL Programming 2
Search our Forums:

Back to Top