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 a " view definition" from catalog tabl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
surya.kalyan

New User


Joined: 09 Jan 2007
Posts: 20
Location: Mumbai

PostPosted: Mon Jun 25, 2007 6:02 pm    Post subject: How to find a " view definition" from catalog tabl
Reply with quote

Is it possible to view the definition of a view after it has been created from some catalog tables given its name??
I checked the sysibm.sysviews table and it seems that it stores the definition of the view but I was not able to get a meaningful definition.
Please give the query if possible.
Back to top
View user's profile Send private message

wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Mon Jun 25, 2007 10:59 pm    Post subject: Re: How to find a " view definition" from catalog
Reply with quote

There is no query you can run to get the DDL. The best way is to use some third party tool like BMC or CA or even IBM.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jun 25, 2007 11:34 pm    Post subject: Re: How to find a " view definition" from catalog
Reply with quote

wanderer wrote:
There is no query you can run to get the DDL. The best way is to use some third party tool like BMC or CA or even IBM.


It is in sysibm.sysviews the field TEST. Select all the rows where NAME is equal to the view you are looking for and order by seqno.
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Tue Jun 26, 2007 12:35 am    Post subject:
Reply with quote

My mistake. Yes, that is correct. Thanks Craq!
Back to top
View user's profile Send private message
catchyblues

New User


Joined: 28 Dec 2005
Posts: 24

PostPosted: Tue Jun 26, 2007 4:54 am    Post subject: Re: How to find a " view definition" from catalog
Reply with quote

Select text from Sysibm.sysviews where name = 'table-name'
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 RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts How to see VIEW definition from BMC c... rohanthengal DB2 1 Thu May 04, 2017 1:50 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm


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