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

Old and New vlaues for the updated columns in multiple table


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

New User


Joined: 21 Sep 2006
Posts: 17

PostPosted: Sat Jul 03, 2010 8:03 pm
Reply with quote

Hi,
I was wondering if we would be able to know if any DB2 column has been updated after completion of the job. My job (multiple programs) deals with multiple tables and depending upon various conditions the columns get updated.

I dont want to change the program to have the old value in case of an update query gets executed. I was thinking if this can be done someway without changing the programs.

I did search in the forum but could not find any topic on this. Please let me know if i can refer any topic in the manual.

Thanks,
Paresh
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Jul 03, 2010 8:18 pm
Reply with quote

You could use triggers to track the changes and write them to another table as a change/update log.
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 Format data from multiple records usi... SYNCSORT 4
No new posts count contained values of several col... DB2 5
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts To join 2 tables and to join 3rd tabl... DB2 8
Search our Forums:


Back to Top