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

DB2 command -- syntax


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitraja

New User


Joined: 13 Jan 2004
Posts: 11

PostPosted: Wed Sep 29, 2004 4:09 am
Reply with quote

Hi,

I am looking for a DB2 command which will give me the result and the coulmn name as well in the output.

Right now when I use QMF I just get the result of the query. If I want to get the COLUMN names back in the result set what would the command be ?? Or is there any set up I need to do ??

Suppose I am using the query from a cobol program I want a uery which will return the column name + the resulf of the query

Thanks
Ami
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Sep 29, 2004 9:01 am
Reply with quote

Why don't you use SPUFI instead of QMF? SPUFI does just that.
Back to top
View user's profile Send private message
amitraja

New User


Joined: 13 Jan 2004
Posts: 11

PostPosted: Fri Oct 01, 2004 2:00 am
Reply with quote

Hi,

thanks for the reply

I can use supify that's true but what I am accessing the DB2 database from other Cobol program. So I want it as an output in the result set.

Thanks
Amit
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Oct 02, 2004 12:29 am
Reply with quote

You'll have to provide the column heads yourself in the pgm, likeyou'd do for any report printed from a COBOL pgm.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts How to Login in to cics region and is... CICS 9
No new posts Passing containers on START command CICS 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
Search our Forums:

Back to Top