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 get the list of rows updated,inserted based on time

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

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Thu Jul 29, 2010 7:13 pm    Post subject: How to get the list of rows updated,inserted based on time
Reply with quote

Hi,

Is there any possibility to find the list of rows updated,inserted ina table based on time.

Regards,
Rajan BOSE.
Back to top
View user's profile Send private message

Ragav86

New User


Joined: 27 Jan 2010
Posts: 37
Location: chennai

PostPosted: Thu Jul 29, 2010 10:26 pm    Post subject:
Reply with quote

i think its not possible to get the no of rows base on time..
but the you can get the no or rows updated or inserted from SQLERRD(3) of SQLCA for the unit of work..
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jul 30, 2010 10:43 am    Post subject:
Reply with quote

Hello,

If your design is to include the current date/time stamp each time a row is inserted/updated, you can simply query the table.

If this is not part of the process already, you cannot run the quesy against the rows to determine the date/time.
Back to top
View user's profile Send private message
srajanbose
Warnings : 1

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Fri Jul 30, 2010 12:57 pm    Post subject:
Reply with quote

Hi,

For some of the tables timestamp is present as a table column and for some other tables timestamp is not present as a column.

I raised the question for the tables which doesn't have timestamp..It's very clear for me that it is not posible to get the updated and inserted rows.


Thanks,
Rajan BOSE.
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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