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
 
Updated rows information

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
nareshdacha

New User


Joined: 12 Jan 2010
Posts: 66
Location: US

PostPosted: Mon Aug 02, 2010 5:05 pm    Post subject: Updated rows information
Reply with quote

How to retrieve the updated rows from employee table? We can refer the variable SQLERRD(?) to know how many records got updated but how to check which records got updated recently.. (If the table does not have date and timestamp columns).... Is there any way to get the recent updated rows...........
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Mon Aug 02, 2010 5:20 pm    Post subject:
Reply with quote

what version of db2?
Back to top
View user's profile Send private message
nareshdacha

New User


Joined: 12 Jan 2010
Posts: 66
Location: US

PostPosted: Mon Aug 02, 2010 5:26 pm    Post subject: Reply to: Updated rows information
Reply with quote

DB2 Version 9.1 .......
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Mon Aug 02, 2010 6:04 pm    Post subject:
Reply with quote

Quote:
Is there any way to get the recent updated rows


what do you mean by that? very poorly worded. do you mean in the recent week?, by the last update statement? sqlerrcd(3) by the way provides the count.

Selecting values while updating data maybe what you are looking for.

Determining when a row was changed discusses generic time row changed,
but you need to read the documentation, as you must alter the table and add a column ROW CHANGE TIMESTAMP.

other than that, I am going to stop guessing what you mean/want.
Back to top
View user's profile Send private message
nareshdacha

New User


Joined: 12 Jan 2010
Posts: 66
Location: US

PostPosted: Mon Aug 02, 2010 6:17 pm    Post subject: Reply to: Updated rows information
Reply with quote

Sorry for the ambiguity in the statement.....
Thanks for the suggestion....
I got the solution by using ROW CHANGE TIMESTAMP....
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 Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Can we combine the rows with same key... V S Amarendra Reddy DB2 12 Fri Dec 01, 2017 10:29 pm
No new posts JCL INFORMATION - Need to know what t... gauravd01 JCL & VSAM 8 Wed Nov 29, 2017 12:54 pm

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