Question

My spool has a problem; i've written these sets:

    echo "SET COLSEP #@"                                                       >> ${FILE_SPOOL_SQL}       
    echo "SET PAGESIZE 0"                                                      >> ${FILE_SPOOL_SQL} 
    echo "SET TERMOUT ON"                                                      >> ${FILE_SPOOL_SQL}
    echo "SET TRIMOUT ON"                                                      >> ${FILE_SPOOL_SQL}
    echo "SET LINESIZE 1000"                                                   >> ${FILE_SPOOL_SQL}        
    echo "SET FEEDBACK OFF"                                                    >> ${FILE_SPOOL_SQL}        
    echo "SET TRIMSPOOL ON"                                                    >> ${FILE_SPOOL_SQL} 

but the output still has spaces:

PART_ONE    #@2.26453E+20@#DATE_FIRST     #@13-JUN-13@#13-JUN-13 09.50.00.000000 PM 

I want something like:

PART_ONE#@2.26453E+20@#DATE_FIRST#@13-JUN-13@#13-JUN-13 09.50.00.000000 PM

How can i resolve it?

Was it helpful?

Solution

Your issue has been aswered here:

It is trimming it -- its just that sqlplus formats the results into columns based on their widths. sqlplus is a reporting tool -- it likes to print things "pretty".

So you need to format your own select statement.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top