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

To track all the views which uses the same table


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

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Thu Apr 24, 2008 3:20 pm
Reply with quote

Cud u pls suggest me an answer on this…


I have a table , say an emp table. I need to track all the views which uses this table as source…


Regards
R.Karthik
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu Apr 24, 2008 4:55 pm
Reply with quote

try this

Code:


select name from sysibm.sysviews where text like '%table_name%';

Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Thu Apr 24, 2008 6:21 pm
Reply with quote

Go to Platinum
Code:
 
DB2 Object ===> T                       Option  ===> V    Where => N   
 Table Name ===> emp                >  Creator ===> *
  Qualifier ===> *                    >  Grantor ===> *         


It will list all the views on the table emp.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Fri Apr 25, 2008 4:47 am
Reply with quote

Do you have BMC Software Administrative Products for DB2 installed at your shop?
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Unload and Load ISPF Table TSO/ISPF 4
Search our Forums:


Back to Top