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

How to find the perticular view has been defined


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

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Thu Dec 22, 2005 12:18 am
Reply with quote

Hi,

How can we find the tables on which a perticular view has been defined.Here we are having only name of that view with us.

Regards,
Umed
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Dec 22, 2005 3:23 am
Reply with quote

If you have DB2 FileAid. use option 3.4, then option GD to display the view.
Back to top
View user's profile Send private message
senthilssg

New User


Joined: 09 Dec 2005
Posts: 64
Location: USA

PostPosted: Thu Dec 22, 2005 11:52 am
Reply with quote

Hi umed,

you can get the table name by getting informattion from the sysibm.sysviews catalog table.


execute the query in the following format in QMF or in SPUFI

SELECT NAME ,TEXT FROM SYSIBM.SYSVIEWS WHERE NAME ='view name '


In output of above query , TEXT column having declaration of that view . from that you can know corresponding table for that given view


Eg:


NAME TEXT
------------------ ---------------------------------------------
EMPLOYEE_VIEW create view employee_view (id ,name, sal) as select emp_id , emp_name,emp_sal from ssgsen.employee;

In that example , table name for the view EMPLOYEE_VIEW is ssgsen .employee;
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts SET PATH in View DDL DB2 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Issues with VIEW DATASET Command CLIST & REXX 2
Search our Forums:

Back to Top