Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to get a variable length ASCII file from SQL*PLUS output
Bu Yun Fei <yfbu_at_ctlsg.creaf.com> wrote ...
> I'm currently doing data conversion from Oracle database and I need to
> output data to a variable length ASCII file, which means at the end of
> each record inside the file, there shouldn't be any trailing space
> behind. It seems to me that the output from SQL*PLUS is always fixed
> length.
If you have SQL*Plus 3.3 (or is it 3.2) or greater, there is a new command, "SET TRIMSPOOL ON". This causes blanks at the end of each line to be truncated, regardless of LINESIZE.
Oracle probably got a million requests for that feature!
Chris
![]() |
![]() |