If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Print message to console

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-07, 11:36
iskander iskander is offline
Registered User
 
Join Date: Sep 2007
Posts: 50
Question Print message to console

What is an equivalent of the Ms SQL print function in DB2 SQL?
How can I output a message to the console in the run query tool?
Reply With Quote
  #2 (permalink)  
Old 10-30-07, 15:01
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
What is your "run query tool"? This question is really difficult to answer in most cases because the rule is to communicate with DB2 from a client application. There, a print statement/function does not make much sense.

You can write data to an external file via user-defined functions. But that is probably not what you have in mind? Could you explain what exactly you need? Maybe there are other ways to achieve that.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 10-30-07, 15:09
iskander iskander is offline
Registered User
 
Join Date: Sep 2007
Posts: 50
Sorry about that, that is a bit silly indeed.
I am using iSeries navigator to connect to an AS 400 on z/OS
I would like a way to output messages to the console (like the MS SQL print function would do). At the moment I am writing to a log table but that is a bit inconvenient.
Reply With Quote
  #4 (permalink)  
Old 10-30-07, 17:30
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
What is an "AS 400 on z/OS"? AS/400 (aka iSeries) is a different hardware architecture and runs OS/400, which has DB2 integrated into the operating system kernel. z/OS is the operating system for mainframes (aka zSeries). DB2 for z/OS, DB2 for AS/400, and DB2 LUW are separate products.

So what I don't understand is (a) on which platform you are working, and (b) where you want to write your messages to. Do you mean the (db2) shell? Or the operating system console as z/OS has one?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On