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

How to get the list of rows updated,inserted based on time


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

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Thu Jul 29, 2010 7:13 pm
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
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

Moderator Emeritus


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

PostPosted: Fri Jul 30, 2010 10:43 am
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

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Fri Jul 30, 2010 12:57 pm
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts PL/1 SEND CICS MAP first time, attrib... CICS 6
No new posts Write record twice based on condition... SYNCSORT 7
No new posts convert arbitrary UTC to local (SYD) ... COBOL Programming 1
No new posts Create a specific record/file based o... SYNCSORT 8
Search our Forums:


Back to Top