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 Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm

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