MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Describe Command & Saving Explain Report

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Jai
Beginner


Joined: 06 Jun 2003
Posts: 57
Topics: 20

PostPosted: Wed Sep 24, 2003 8:05 am    Post subject: Describe Command & Saving Explain Report Reply with quote

Hi Team,

Please let me know equivalent command of Describe in DB2 Mainframes.
In DB2 Web one, it is as follows:
For describe in db2 in db2cmd

C:\>db2 describe select * from <table name>

I get to know about the NOT NULL Fields through DCLGEN or through SYSIBM.SYSTABLES.

But I want to know the equivalent command in DB2 Mainframes which will be very useful.


And also if anybody has generated the Explain Report for SQL from BMC Products, please let me know how to save it into PDS so that I can ftp it and send the report. Otherwise it takes long time to copy and paste all the report to Word File.
And also about the Sort A Sort B Commands with F4 and F5 Function Keys.

Thanks in advance.
_________________
Have a Great Day.
Thanks & Regards,
Jai
Back to top
View user's profile Send private message Yahoo Messenger
naren_ab
Beginner


Joined: 07 Jan 2003
Posts: 32
Topics: 10

PostPosted: Wed Sep 24, 2003 10:02 am    Post subject: Reply with quote

Hi Jai
I think describe gives the details(like columns and there data type etc) of the table you want..
SYSTABLES will give the table description only.

If you can try a query on SYSIBM.SYSCOLUMNS with TBNAME = the name of the table you want, that might help you.
You can run this in either SPUFI or QMF or any otherway, and save the output in file, download to your computer and open it in the way you want.


Hope this helps.
Back to top
View user's profile Send private message
Jai
Beginner


Joined: 06 Jun 2003
Posts: 57
Topics: 20

PostPosted: Wed Sep 24, 2003 11:38 pm    Post subject: Reply with quote

Hi Naren,

Thanks for the information.
I know to do from sysibm.syscolumns. I want to know if any command is there called describe or so in db2 mainframes and if so what is that command which will be useful.
And also about the Explain report if anybody knows.


Thanks in advance.
_________________
Have a Great Day.
Thanks & Regards,
Jai
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Thu Sep 25, 2003 3:02 am    Post subject: Reply with quote

Jai,

Please SEARCH before posting. Check this topic ( the last post by me) discusses about EXPLAIN

http://www.mvsforums.com/helpboards/viewtopic.php?t=215

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group