Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts To know activities on db2 tables ashek15 DB2 4 Fri Mar 03, 2017 11:23 pm
No new posts ERM-Diagram of SysIBM-Catalog-Tables Auryn DB2 2 Fri Feb 17, 2017 6:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us