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 > [DB2 Mvs] describe alternative

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-22-05, 10:58
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Wink [DB2 Mvs] describe alternative

I can't use 'describe' command on mvs shell and I don't remember the SQL statement that get the types and dimension of columns... Have you any idea?

By!
Fabio
Reply With Quote
  #2 (permalink)  
Old 11-24-05, 11:44
tubdba tubdba is offline
Registered User
 
Join Date: Aug 2004
Posts: 18
There is a DB2-Catalog-Table called sysibm.syscolumns, which can be used:_

type "select tbcreator, tbname, name, colno, coltype, length, scale .....
from sysibm.syscolumns where tbcreator = 'yourtabcreator' and tbname
= 'yourtabname' order by colno"
Reply With Quote
  #3 (permalink)  
Old 11-24-05, 11:51
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Great! I will try tomorrow!!

Thanks
Reply With Quote
  #4 (permalink)  
Old 11-25-05, 03:44
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
describe works with a select statement:
not ok: describe table T1
ok: describe select * from T1

unfortunately some very handy features from LUW (list tables and stuff) does not exist on z/OS ...
__________________
Juliane
Reply With Quote
  #5 (permalink)  
Old 11-25-05, 09:20
petitof petitof is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Talking

Maybe this statement is better!
Thanks Juliane
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