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
 
Table name and corresponding Updates/DELETES/Insert by Progr

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Table name and corresponding Updates/DELETES/Insert by Progr
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10457
Location: italy

PostPosted: Tue May 25, 2010 6:26 pm    Post subject: Reply to: Table name and corresponding Updates/DELETES/Inser
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    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 Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am
No new posts Unloading DB2 table in CSV format alo... grvtomar COBOL Programming 7 Sun Jan 28, 2018 2:05 am

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