Unix Technical Forum

Printing on Console in DB2 Store Procedures

This is a discussion on Printing on Console in DB2 Store Procedures within the DB2 forums, part of the Database Server Software category; --> Is there a way out to Print on the console during the execution of Stored Procedures....


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 04:40 AM
vj
 
Posts: n/a
Default Printing on Console in DB2 Store Procedures

Is there a way out to Print on the console during the execution of
Stored Procedures.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 04:40 AM
Serge Rielau
 
Posts: n/a
Default Re: Printing on Console in DB2 Store Procedures

vj wrote:
> Is there a way out to Print on the console during the execution of
> Stored Procedures.
>

During the execution: No, at least no built-in one.
For debugging (I presuem that's what you want to do)
you can use a temp table.. There was a thread just yesterday about logging.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 04:48 AM
amurchis
 
Posts: n/a
Default Re: Printing on Console in DB2 Store Procedures

Keep in mind any stored procedure is running inside a DB2 server
process, which in essence means the procedure code is running inside a
server daemon process -- in other words, background processes. Daemon's
typically have their STDOUT & STDERR outputs disabled (to use a unix
term, piped to /dev/null) -- as:

1) For a multi-user system, which display gets the output?
2) Who's to say there is actually a console to display the output on?

Your best bet to see any output from a procedure is to open a file
inside that procedure, and direct any output of the procedure to that file.

vj wrote:

> Is there a way out to Print on the console during the execution of
> Stored Procedures.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:11 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com