you can't spool from PL/SQL -- that's a SQL*Plus command. UTL_FILE is the way to go.