Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us