title: Windows Batch File calling Oracle PL/SQL block- Format Issue
body: <p>I have a DB.bat file which holds PL/SQL block as below. The problem here i'm facing is the extract exported to csv has text format. I need to have it in a tabular structure. Please guide me how to achieve the tabular format in csv after spool.</p>
  
  <p>c:\desktop\DB.bat:</p>
  
  <pre><code>call sqlplus ID/pwd@db @c:\desktop\code.sql
  </code></pre>
  
  <p>c:\desktop\code.sql:</p>
  
  <pre><code>set head off
  set feed off
  set pagesize 0
  spool c:\desktop\DB.csv
  --PL/SQL Block ---
  spool off
  set head on
  set feed 6
  quit
  </code></pre>