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 DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Add system date inside of a PS file a... pramitdas DFSORT/ICETOOL 5 Sun Aug 28, 2016 12:06 am
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am


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