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

Table name and corresponding Updates/DELETES/Insert by Progr


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

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Tue May 25, 2010 6:08 pm
Reply with quote

Hi,

Kindly let me know how to get number of Rows Updated/DElete/Inserted in all the tables used in the program after the program completes successfully.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue May 25, 2010 6:11 pm
Reply with quote

Log this information while executing each query... SQLERRD(3) might play role for you
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Tue May 25, 2010 6:14 pm
Reply with quote

Escapa wrote:
Log this information while executing each query... SQLERRD(3) might play role for you


Yes....In case of Update statement, the number of rows updated due to UDPATE statement is logged onto SQLERRD(3).

But is it possible to retrieve the summary of TABLE name and no of rows udpated/deleted/inserted at end?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Tue May 25, 2010 6:26 pm
Reply with quote

Quote:
But is it possible to retrieve the summary of TABLE name and no of rows udpated/deleted/inserted at end?


NO, every program should track the relevant <statistic info>
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 count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Sort to insert record in an empty file. DFSORT/ICETOOL 5
Search our Forums:


Back to Top