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

Obtain date a table was loaded with all new records


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

New User


Joined: 10 Dec 2010
Posts: 96
Location: Massachusetts

PostPosted: Thu May 19, 2011 11:48 pm
Reply with quote

Hi,
I spoke with the DBA's on this and got an 'i don't think so'. We are running trial conversions for different months going back from today and the DB2 tables we are using are getting 'refreshed' with PROD data for a fixed day. I thought maybe we could query off of sys1dummy to get the date that new data was loaded in. I do not think we are dropping the table so maybe this approach is a no go. We would like to use that date to get 3 years back worth of some payment history.
No rush and thanks.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri May 20, 2011 12:41 pm
Reply with quote

Do you mean the date the test was refreshed ?
It depends on how the refresh is done. if with DSN1COPY (which is the most likely), then you won't find out directly.

in SYSIBM.SYSCOPY history is kept (site dependent on how long) of what happened to that tablespace within DB2.

for example : a ICTYPE = 'R' or 'S' is a LOAD REPLACE.
the rest you can find in the manuals.

as said DSN1COPY is outside DB2, so you won't find that. But after a DSN1COPY other stuff has to happen like REBUILD INDEX, CHECK DATA and/or REPAIR which you can find in SYSCOPY.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top