How to counter an error( SP2-0308: cannot close spool file ) while spooling a file

Question : How to counter an error( SP2-0308: cannot close spool file ) while spooling a file

Following error is generated , when I am trying to spool a file, within an sql query.
SP2-0308: cannot close spool file .

No file is opened, at the time of spooling.
I need to do many sql queries to spool files *.dat(individually).


 

Solution: How to counter an error( SP2-0308: cannot close spool file ) while spooling a file

most likely the output from the spool is too big for the current file system or disk.