Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to display the structure of DB2 table?

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

New User


Joined: 30 Jul 2009
Posts: 7
Location: Pune

PostPosted: Wed Apr 14, 2010 12:29 pm    Post subject: How to display the structure of DB2 table?
Reply with quote

I wan to see all the specifications related to a DB2 table?
How can we achieve this using SPUFI?

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

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10457
Location: italy

PostPosted: Wed Apr 14, 2010 1:49 pm    Post subject: Reply to: How to display the structure of DB2 table?
Reply with quote

SPUFI is just a smart interface to run queries
is not a <data aware> thing

You can find the info You look for by running the appropriate queries on the DB2 catalog tables ( SYSIBM. stuff )

or ask Your peers if some DATABASE ADMINISTRATION TOOL is available in Your organization
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1275
Location: Israel

PostPosted: Wed Apr 14, 2010 2:10 pm    Post subject: Reply to: How to display the structure of DB2 table?
Reply with quote

Quote:
all the specifications related to a DB2 table
are stored in many... DB2 tables!
Depending on the specification you want, you can access one of the many SYSIBM.SYSxxxx tables.
For example, the table columns can be found with:
Code:
SELECT
   *
FROM
   SYSIBM.SYSCOLUMNS
WHERE
   TBNAME = 'tablename'
ORDER BY
   COLNO
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 Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts how to display APL characters? Pedro TSO/ISPF 6 Wed Mar 14, 2018 5:07 am
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us