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 find the perticular view has been defined

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to find the perticular view has been defined
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    Post subject:
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    Post subject:
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    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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am


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