This is what is contained in the buffer. I just run it from the SQL> prompt and <br>i get the following error:<br><br>ERROR at line 5:ORA-00933: SQL command not properly ended<br><br>select costcode,fundcode,program,objectcode,project,<br>earnings,retirement,retirecredit,fica,insurance,health,ltdisab,<br>downdate from ops$vdhperts.payroll where costcode='532' <br>order by costcode, fundcode<br>spool c:\temp\output.txt<br>/