Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us