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 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: 10274
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: 1232
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 Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm


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