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

How to find the reorg date previous to the last reorg?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Akshay Pande

New User


Joined: 23 Oct 2012
Posts: 3
Location: India

PostPosted: Mon Jun 03, 2013 3:09 pm
Reply with quote

Hi,

I have a query regarding Reorg.

I have to find out the Reorg date for a particular table before the last reorg i.e. if the last reorg was done on 1st Jan, I want to find the date of the reorg done before that.

In my search online, I came across LIST HISTORY command but I think it can be used for UNIX and Windows but not in mainframe environment.

Also I came across the table SYSIBMADM.DB_HISTORY but that also I cant seem to find in the system.

Could you please suggest me if there is any other to find out the date of the reorg previous to the last one.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Jun 03, 2013 3:38 pm
Reply with quote

Hi Akshay,

Use this query,
Code:
SELECT dbname, tsname, timestamp
from sysibm.syscopy
where ictype in('w','x')
and dbname = 'databasename'
and tsname = 'tablespacename'
order by timestamp desc
first first 5 rows only;

If you know the name of the job which did the last reorg, if it is scheduled. Check the JMR for a big range.

Thanks,
Sushanth
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top