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
 

 

Finding the recently updated records in a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Finding the recently updated records in a table
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    Post subject: Re: Finding the recently updated records in a table
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: 190
Location: hyderabad

PostPosted: Tue Mar 29, 2005 8:47 am    Post subject: Re: Finding the recently updated records in a table
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    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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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