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
 
An easy way to know all column names in the catalog tables

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Kamakshi Ayyadurai

New User


Joined: 28 Dec 2007
Posts: 4
Location: Chennai,India

PostPosted: Fri Dec 28, 2007 8:24 pm    Post subject: An easy way to know all column names in the catalog tables
Reply with quote

Hi Everyone,

I am very Happy icon_biggrin.gif to say that this is my first Post in this Forum. So i decided to post something simple,useful and also cool

Sometimes we try to know the column names in the catalog tables without even intrested in the rows present.

In those times it is not necessary to query the catalog tables but its enough if u refer the poster attached below
Back to top
View user's profile Send private message

vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Fri Dec 28, 2007 9:58 pm    Post subject:
Reply with quote

Good one but not efficient.

Instead of opening, put ZOOM and search for the table, Just a DRAW command in QMF will give you the column names without executing it.

There could be better tools for this as well.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Dec 28, 2007 10:17 pm    Post subject:
Reply with quote

Give any wrong condition such as
Code:
SELECT * FROM Table name
where 1=2
WITH UR;


You'll get the columns name.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    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 column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am

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