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

To view DDL


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

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Mon Apr 12, 2010 4:36 pm
Reply with quote

Is it possible to view DDL staements for already created tables in DB2 Catalog?

Please suggest.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Apr 12, 2010 5:40 pm
Reply with quote

Ofcourse Yes, If you have RC/Query or with other tools also its possible i guess. What tool do you have in your place ?

Sushanth
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Apr 12, 2010 11:33 pm
Reply with quote

DCLGEN also has the DECLARE TABLE statement which can be considered as DDL. You have to let us know what you are trying to find out from the DDL then we may be able to give better suggestions.
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Tue Apr 13, 2010 9:48 am
Reply with quote

I actually want to know the constraints of any table which were mentioned by create or alter DDL statements.

Thanks.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Tue Apr 13, 2010 8:12 pm
Reply with quote

Constraint information can be found out from the catalog tables.
Click Here for more information.
Every site I have worked for had a metadata store/db2 cross reference where I could refer for more information about any existing table. Talk to your peers/seniors in the project, to find out if you have equivalent alternative available at your site.
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 SET PATH in View DDL DB2 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Issues with VIEW DATASET Command CLIST & REXX 2
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts How to filter PDS member using LMINIT... CLIST & REXX 4
Search our Forums:

Back to Top