MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to find the no. of records updated or inserted in table

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Mon Jul 18, 2005 9:21 am    Post subject: how to find the no. of records updated or inserted in table Reply with quote

Hi,

How to find the number of records updated or inserted into a table?
I know one method, using sqlerrd(3). is there any other way? Pls. let me know.

Thanks
Nadh
Back to top
View user's profile Send private message Send e-mail
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Mon Jul 18, 2005 9:58 am    Post subject: Reply with quote

You can do it in program. You may have to write a logic using some sort of incremental counter for each record inserted/updated. You can refer the same count for commit later in the program. The other you said. I can think of this much.
Back to top
View user's profile Send private message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Mon Jul 18, 2005 10:10 am    Post subject: Reply with quote

HI

I want to know whether we can find from SYSIBM tables.

nadh
Back to top
View user's profile Send private message Send e-mail
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Mon Jul 18, 2005 10:26 am    Post subject: Reply with quote

You can not find the count in the DB2 catalogue tables. But your DBA would be able to tell you for any changes to the tables including counts using log files.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group