Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spooling Tab Delimited Text - Excess spaces

Status
Not open for further replies.

cd972

Programmer
Jun 19, 2008
3
US
I am successfully spooling a tab delimited text file in my sql script. The only issue I am having is the spool file contains unnecessary spaces. I'm assuming this method does not trim off this excess and I'm wondering if there is a way to do this, within the script. I have a user running a .bat file to generate this.

Here is a snip-it of what I'm using to generate this...
col TAB# new_value TAB NOPRINT
select chr(9) TAB# from dual;
set colsep "&TAB"
SPOOL c:\&mmddyy..txt
SELECT

 
In SQL*Plus, TRIMSPOOL determines if trailing spaces are trimmed from lines spooled to a file. Could it be that you have it set on?


[sup]Beware of false knowledge; it is more dangerous than ignorance.[/sup][sup] ~George Bernard Shaw[/sup]
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
My website: www.EmuProductsPlus.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top