IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

An easy way to know all column names in the catalog tables


IBM Mainframe Forums -> DB2
Post new topic   This topic is locked: you cannot edit posts or make replies.
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
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
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

Superior Member


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

PostPosted: Fri Dec 28, 2007 10:17 pm
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. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts first column truncated in search result IBM Tools 13
No new posts Need to fetch data from so many DB2 t... DB2 9
Search our Forums:

Back to Top