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: 6248
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. All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Question regarding ISPF tables with T... TSO/ISPF 11
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts ISPF Table to add a new column TSO/ISPF 1
Search our Forums:


Back to Top