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

Finding the recently updated records in a table


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

New User


Joined: 07 Mar 2005
Posts: 3

PostPosted: Mon Mar 21, 2005 7:54 pm
Reply with quote

icon_question.gif how can we find out recently updated records in a table?
Back to top
View user's profile Send private message
chandramouli.v

New User


Joined: 21 Mar 2005
Posts: 12

PostPosted: Mon Mar 28, 2005 4:58 pm
Reply with quote

By checking the values in SQLCA u can find the updated records
Back to top
View user's profile Send private message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Tue Mar 29, 2005 8:47 am
Reply with quote

Hi revathi

u can check the SQLERRD(3) field of SQLCA,which gives the details of number of rows effected becouse of previous command....


Otherway is in most of the applications we will have a timestamp field in the table or whenever we make any updates to the columns,we also set the timestamp to the current value....


Cheers
Siva
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 Load new table with Old unload - DB2 DB2 6
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top