<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ordering Output of a select in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664484#M797280</link>
    <description>SqlPlus was never meant as a reporting tool, therefore to get the output you want you may have to redefine column formats, etc as suggested by others.&lt;BR /&gt;Another option may be using iSqlplus which display the output in a more readable grid format.&lt;BR /&gt;&lt;BR /&gt;Or you could try&lt;BR /&gt;SET MARKUP HTML ON SPOOL ON &lt;BR /&gt;from sqlplus and output your data in html.&lt;BR /&gt;&lt;BR /&gt;If you post your sql query and table definitions it may help to resolve your problem.&lt;BR /&gt;Patti</description>
    <pubDate>Fri, 04 Nov 2005 08:53:24 GMT</pubDate>
    <dc:creator>Patti Johnson</dc:creator>
    <dc:date>2005-11-04T08:53:24Z</dc:date>
    <item>
      <title>Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664479#M797275</link>
      <description>Hi all,&lt;BR /&gt;I'm doing a query via SQLPLUS on my Oracle &lt;BR /&gt;db and I re-direct the output to a file. &lt;BR /&gt;The output is full of blank and tab charset&lt;BR /&gt;how can I obtain an human output from my select ??&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 04 Nov 2005 06:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664479#M797275</guid>
      <dc:creator>Sirius Black</dc:creator>
      <dc:date>2005-11-04T06:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664480#M797276</link>
      <description>You have to check for NULL condition with select query. Few columns may be allowed to use "" or NULL so that select is sending &lt;SPACE&gt; and &lt;TAB&gt; to output file.&lt;BR /&gt;&lt;BR /&gt;Or else you can write a script to remove spaces, tabs and make human readable format as your own. &lt;BR /&gt;&lt;BR /&gt;Post select query and output file to give script.&lt;BR /&gt;&lt;BR /&gt;~regards&lt;/TAB&gt;&lt;/SPACE&gt;</description>
      <pubDate>Fri, 04 Nov 2005 06:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664480#M797276</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-04T06:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664481#M797277</link>
      <description>Hi,&lt;BR /&gt;you can start from this set of lines:&lt;BR /&gt;&lt;BR /&gt;SET NEWPAGE 0&lt;BR /&gt;SET LINESIZE 10&lt;BR /&gt;SET PAGESIZE 0&lt;BR /&gt;SET ECHO OFF&lt;BR /&gt;SET FEEDBACK OFF&lt;BR /&gt;&lt;BR /&gt;column FIRST format a4&lt;BR /&gt;column SECOND format a5&lt;BR /&gt;&lt;BR /&gt;select FIRST, SECOND from TABLE;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that help&lt;BR /&gt;regards</description>
      <pubDate>Fri, 04 Nov 2005 06:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664481#M797277</guid>
      <dc:creator>Piergiacomo Perini</dc:creator>
      <dc:date>2005-11-04T06:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664482#M797278</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;did you run "spool filename.lis" before running your sql statement?&lt;BR /&gt;&lt;BR /&gt;if yes, can you confirm if you get the output on the screen when running the select statement without the spool command?&lt;BR /&gt;&lt;BR /&gt;revert&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 04 Nov 2005 06:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664482#M797278</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-11-04T06:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664483#M797279</link>
      <description>For Piergiacomo:&lt;BR /&gt;I try to run it with your set statement but unfortunatelly they've not the effect that we want. &lt;BR /&gt;I run before the select statement the spool whit the file and in the spool file I've the same output with blank and tab charset..&lt;BR /&gt;&lt;BR /&gt;This is one row of my output&lt;BR /&gt;&lt;BR /&gt;XXXXX                                                             AAA BBB                                               &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                                                                                  XXXXX                                 &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                                                                                                  ACCUMALE              &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                                                                                                                  PIAZZA SAN &lt;BR /&gt;DAMIANO, 1                                                                                                            &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                       XX-XXXXX                                                                                         &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                                       RO                                                                               &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                                                       XX.XXX.XXX.XX                                      &lt;BR /&gt;FR            &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                                                                                                                          ROU&lt;BR /&gt;TER                                                                                                                     &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                   XXXXXX XX_XX_XXXXXXXXX:XXXXXX                                  XXX.XX.XXX.X    ACCUMALE             &lt;BR /&gt;                                                                                                                        &lt;BR /&gt;                                                                                                                   FALSO&lt;BR /&gt;            XX.XXX.XXX.XXX                                                                     FALSO            N&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Fabrizio&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Nov 2005 08:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664483#M797279</guid>
      <dc:creator>Sirius Black</dc:creator>
      <dc:date>2005-11-04T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664484#M797280</link>
      <description>SqlPlus was never meant as a reporting tool, therefore to get the output you want you may have to redefine column formats, etc as suggested by others.&lt;BR /&gt;Another option may be using iSqlplus which display the output in a more readable grid format.&lt;BR /&gt;&lt;BR /&gt;Or you could try&lt;BR /&gt;SET MARKUP HTML ON SPOOL ON &lt;BR /&gt;from sqlplus and output your data in html.&lt;BR /&gt;&lt;BR /&gt;If you post your sql query and table definitions it may help to resolve your problem.&lt;BR /&gt;Patti</description>
      <pubDate>Fri, 04 Nov 2005 08:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664484#M797280</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2005-11-04T08:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664485#M797281</link>
      <description>Hi Alleva,&lt;BR /&gt;i beg your pardon but&lt;BR /&gt;i get some mess with my "SET" suggestions!&lt;BR /&gt;(as you posted ;-))&lt;BR /&gt;As Patti said, if you want use Sqlplus u&lt;BR /&gt;have to "re-draw" output with &lt;BR /&gt;SET and COLUMN &lt;BR /&gt;(for example :&lt;BR /&gt;column xxxx format a4&lt;BR /&gt;column yyyyy format a5,&lt;BR /&gt;to put data in 4 char. or in 5 char. space&lt;BR /&gt;column);&lt;BR /&gt;better, as Patti wrote, try with "SET&lt;BR /&gt;MARKUP HTML" (but again blanks could&lt;BR /&gt;find place in your output file).&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Fri, 04 Nov 2005 09:12:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664485#M797281</guid>
      <dc:creator>Piergiacomo Perini</dc:creator>
      <dc:date>2005-11-04T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664486#M797282</link>
      <description>Ok,&lt;BR /&gt;HTML Is a nice output there's a way to do it&lt;BR /&gt;in XML ??&lt;BR /&gt;Thanks a lot&lt;BR /&gt;Fabrizio</description>
      <pubDate>Fri, 04 Nov 2005 10:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664486#M797282</guid>
      <dc:creator>Sirius Black</dc:creator>
      <dc:date>2005-11-04T10:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664487#M797283</link>
      <description>In SQL*Plus set two variables for removing blanks and tabs from your spooled file...&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; set tab off&lt;BR /&gt;SQL&amp;gt; set trimspool on</description>
      <pubDate>Fri, 04 Nov 2005 17:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664487#M797283</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-11-04T17:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664488#M797284</link>
      <description>hi fabrizio,&lt;BR /&gt;&lt;BR /&gt;can you try the attached function that will allow you to dump your data in cvs format?&lt;BR /&gt;&lt;BR /&gt;you can thus do the following:&lt;BR /&gt;&lt;BR /&gt;create or replace procedure table_dump_csv&lt;BR /&gt;as&lt;BR /&gt;    l_rows  number;&lt;BR /&gt;begin&lt;BR /&gt;    l_rows := dump_csv( 'select * &lt;BR /&gt;                           from your_table &lt;BR /&gt;                           where ..., &lt;BR /&gt;                        ',', '/tmp', 'test.dat' );&lt;BR /&gt;end;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;(assumes that the INIT.ORA parameter utl_file_dir is already set)&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 04 Nov 2005 23:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664488#M797284</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-11-04T23:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664489#M797285</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;You can also try using the Oracle XML &lt;BR /&gt;Developer's Kits (XDK's). &lt;BR /&gt;&lt;BR /&gt;With the XDK, you can generate XML from SQL queries using PL/SQL, Java, C or C++. The following command on the command line generates an XML document containing the first 4 rows of the SCOTT.EMP table:&lt;BR /&gt;$ java OracleXML getXML -user "scott/tiger" "select * from emp where rownum &amp;lt; 5" &lt;BR /&gt;&amp;gt; emp.xml&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sat, 05 Nov 2005 00:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664489#M797285</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-11-05T00:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering Output of a select</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664490#M797286</link>
      <description>Hi,&lt;BR /&gt;try this:&lt;BR /&gt;set pages 0 trims on tab off lines 80 feed off&lt;BR /&gt;&lt;BR /&gt;take care to set correctly the linesize (i put as default 80)&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Mon, 07 Nov 2005 04:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ordering-output-of-a-select/m-p/3664490#M797286</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2005-11-07T04:46:30Z</dc:date>
    </item>
  </channel>
</rss>

