set serveroutput on
Hi,
I tried to put 'Set serveroutput on' into a procedure. But, when
I compiled it, I received the error below. Can anyone tell me
what I am doing wrong?
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE PROCEDURE P2
2 IS
3 BEGIN
4 SET SERVEROUTPUT ON
5* END;
6 /
Warning: Procedure created with compilation errors.
SQL> sho err
Errors for PROCEDURE P2:
LINE/COL ERROR
-------- --------------------------------------------------------
4/5 PLS-00103: Encountered the symbol "SERVEROUTPUT" when
expecting one of the following:
transaction
Thanks in advance.
Sincerely,
Nikhil Kulkarni