how to use serveroutput commands in plsql
Hi,
I have to create spool file inside my procedure how is it possible to use it? Is there any way.
Will dynamic statements will work
E.g CREATE OR REPLACE PROCEDURE SP_PROC1
AS
BEGIN
SET SERVEROUPUT ON;
SPOOL D:\ABCD.LOG;
SET SERVEROUTPUT OFF;
SPOOL OFF;
END;
/
Thanks