If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > To check the column attributes or field type

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-21-09, 01:55
Neena John Neena John is offline
Registered User
 
Join Date: Oct 2008
Location: India
Posts: 37
To check the column attributes or field type

Hi,
How to check the column attributes of the tables?I dont know the pds or library in which the table structure is defined.
Is there any way to check the column attributes(field type)throough QMF?
Reply With Quote
  #2 (permalink)  
Old 03-21-09, 04:19
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
On DB2 z/OS that information can be obtained in the sysibm.syscolumns table. You could write a query something like this:

select SUBSTR(NAME, 1, 35), COLTYPE, LENGTH, SCALE, NULLS from SYSIBM.SYSCOLUMNS WHERE TBCREATOR = 'XXX' and TBNAME = 'XXXXXX' ORDER BY COLNO;

This and other catalog tables are described in the SQL Reference manual Appendix F.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 03-21-09, 04:35
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
You can use DESCRIBE command in QMF.

See DESCRIBE command on "DB2 QMF Reference".
Quote:
DESCRIBE

X Use the DESCRIBE command to display information about a QMF object or a column in a table. The Describe function key can be used from a database object list panel or a Prompted Query panel.

Note: Using DESCRIBE on a database object list panel displays detail information about a single object. The amount of information shown is based on the type of object. On a Prompted Query panel, DESCRIBE displays a Column Description panel that shows information about the columns listed.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On