Re: HELP: Output from within Stored Procedure

From: <bcopping_at_cpcug.org>
Date: 1996/06/01
Message-ID: <4opoqj$fhm_at_news4.digex.net>#1/1


In <4motps$59r_at_newsbf02.news.aol.com>, ahoff54565_at_aol.com (AHoff54565) writes:
>Hello,
>
>There is a system package called DBMS_OUTPUT.PUT_LINE which outputs data
>from within a PL/SQL routine. You need to SET SERVEROUTPUT ON in your
>SQL*PLUS session in order for this to work.
>
>Example:
>
>BEGIN
>
>DBMS_OUTPUT.PUT_LINE('hello world'); <---output to screen
>
>END;
>
>This package can display text and variables. Also, in SQL*PLUS routines
>you can spool output using the spool <file name> command before the select
>statement. Good Luck.

Is it possible to include the session command (serveroutput on) in the PL/SQL routine so the user doesn't have to issue it each time? Thanks,
Bruce Copping Received on Sat Jun 01 1996 - 00:00:00 CEST

Original text of this message