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

How to check the programs using a table


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

New User


Joined: 22 May 2008
Posts: 56
Location: hyderabad

PostPosted: Mon Jun 08, 2009 5:17 pm
Reply with quote

Hi
I need the list of the programs using 'abcd' table.
So I used the following options:

1. I ran the following query
SELECT GRANTEE, UPDATEAUTH,INSERTAUTH,SELECTAUTH
FROM SYSIBM.SYSTABAUTH
WHERE
GRANTEETYPE = 'P' AND
TTNAME = 'ABCD'
AND TCREATOR = ‘XYZ’
ORDER BY GRANTEE
This gave me 84 rows.

2. I ran following two querys,
a.SELECT BNAME,DNAME
FROM SYSIBM.SYSPLANDEP
WHERE BNAME = 'abcd'
AND BTYPE = 'T'
AND BCREATOR = 'XYZ'
WITH UR;

b.SELECT BNAME,DNAME
FROM SYSIBM.SYSPACKDEP
WHERE BNAME = 'KMP_VOLUME_CNTLT'
AND BTYPE = 'T'
AND BQUALIFIER= 'XYZ'
WITH UR;

These two querys give 71 rows togther.

Can you please suggest for the difference.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jun 28, 2009 11:53 am
Reply with quote

Hello,

Suggest you talk with your dba or project senior.

I see no reason for some other value to be returned. . . I suspect the query is retrieving exactly what is in the tables. . .
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top