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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sqlplus spaces buffer

Status
Not open for further replies.

von2

MIS
Jul 25, 2005
11
US
I am running a query that spools to a txt file in this manner.

Code:
 100 320050406 20050325 119090 1 0 
       345
101 320057806 20050326 112020 1 0 
       440

whereas it should actually display like

100 320050406 20050325 119090 1 0 345
101 320057806 20050326 112020 1 0 440

I have hard time removing the spaces after 0 since the file is big. See, there are spaces before second line that are impossible to remove using wordpad.
The last ine breaks into a second line. I even tried to substring some of the columns in order to reduce extra spaces. Toad displays the output normally. But sqlplus is breaking it with extra spaces.
Can someone help?
 
Have you set your LINESIZE? Could you give us a peek at your code?

Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
Author and Sole Proprietor of: Emu Products Plus
 
Hi,

I set the linesize to 130, 200 and 500 and trimspool on ... They all gave the same messy output. Any other ideas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top