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

Number of UPDATE in a DB2 program


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

New User


Joined: 04 Oct 2005
Posts: 19
Location: Singapore

PostPosted: Fri Jun 18, 2010 12:01 pm
Reply with quote

Hi

Does any of the SYSIBM table provide the total number of UPDATE/DELETE/INSERT/SELECT in a program?

Basically, without going into the program, is it possible to know how many UPDATE sql query are there a given program? And on which table also...

Pls let me know if any of you knows about it.

I tried to find in SYSIBM.SYSPAKSTMT but it doesn't give that.


Thanks!
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Jun 18, 2010 1:04 pm
Reply with quote

No
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Fri Jun 18, 2010 7:05 pm
Reply with quote

This is an UNTESTED Query for you to start with.

I am sure you can tailor it to fit your needs:

Code:

SELECT GRANTEE,
       TTNAME,
       DELETEAUTH,
       INSERTAUTH,
       SELECTAUTH,
       UPDATEAUTH,
FROM SYSIBM.SYSTABAUTH
WHERE GRANTEE = MY-PROGRAM
    AND (DELETEAUTH = 'Y'
     OR  INSERTAUTH = 'Y'
     OR  SELECTAUTH = 'Y'
     OR  UPDATEAUTH = 'Y')
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 18, 2010 7:12 pm
Reply with quote

you could also do a SuperC Search
on your DBRM library,
search keys would be INSERT, DELETE, SELECT, UPDATE
then you could sort the results either by program or table.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top