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
 

 

DB2 command -- syntax

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    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

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

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: 11

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: 1592

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


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