Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to find the reorg date previous to the last reorg?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to find the reorg date previous to the last reorg?
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: 1013
Location: India

PostPosted: Mon Jun 03, 2013 3:38 pm    Post subject:
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    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 Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
No new posts OLDS frozen in BACKOUT status when On... lind sh IMS DB/DC 3 Tue Feb 13, 2018 7:12 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us