Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to check the programs using a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to check the programs using a table
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

Site Director


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

PostPosted: Sun Jun 28, 2009 11:53 am    Post subject:
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    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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us