Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
DB2 command -- syntax

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
amitraja

New User


Joined: 13 Jan 2004
Posts: 12

PostPosted: Wed Sep 29, 2004 4:09 am    Post subject: DB2 command -- syntax
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
References
PostPosted: Wed Sep 29, 2004 4:09 am    Post subject: Re: DB2 command -- syntax Reply with quote

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1493

PostPosted: Wed Sep 29, 2004 9:01 am    Post subject:
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: 12

PostPosted: Fri Oct 01, 2004 2:00 am    Post subject:
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: 1493

PostPosted: Sat Oct 02, 2004 12:29 am    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1