<?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: Converting .CSV file into .XLS file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495017#M653398</link>
    <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Yes, that is correct ..I want all the data in different columns.&lt;BR /&gt;&lt;BR /&gt;I want to setup a cron which does all these conversions and send a full completed excel sheet to my inbox. &lt;BR /&gt;&lt;BR /&gt;Please guide me !!!&lt;BR /&gt;&lt;BR /&gt;Merijn,&lt;BR /&gt;&lt;BR /&gt;I tried your suggestion,&lt;BR /&gt;&lt;BR /&gt;I got the message,&lt;BR /&gt;csv2xls:not found &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Karthi</description>
    <pubDate>Thu, 10 Sep 2009 11:21:22 GMT</pubDate>
    <dc:creator>Karthika_2</dc:creator>
    <dc:date>2009-09-10T11:21:22Z</dc:date>
    <item>
      <title>Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495014#M653395</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I wrote a script to extract data from Oracle DB and place it in a text file , and I have coverted .txt file into comma seperated .csv file and I sent it to my mail box . &lt;BR /&gt;&lt;BR /&gt;I can get .xls file in my  inbox.I am getting all data in same column and in different rows , without column name.&lt;BR /&gt;&lt;BR /&gt;but my requirement is to get data in different cells with column names.&lt;BR /&gt;&lt;BR /&gt;I am using,  ( uuencode /test.csv /test.xls |mailx -s "test mial" abscd@in.ab.com ) to send the file.&lt;BR /&gt;&lt;BR /&gt;Note : In my script I set heading off because , every 10 records once I am getting the headings , I don't want like that I need the headings to be printed once .&lt;BR /&gt;&lt;BR /&gt;Please someone guide me.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Karthi&lt;BR /&gt;&lt;BR /&gt;Example files:&lt;BR /&gt;&lt;BR /&gt;my .txt file looks like,&lt;BR /&gt;&lt;BR /&gt;asmdev1 karthi&lt;BR /&gt;asmdev2 ganesh&lt;BR /&gt;&lt;BR /&gt;my .csv file looks like ,&lt;BR /&gt;&lt;BR /&gt;asmdev1,karthi&lt;BR /&gt;asmdev2,karthi&lt;BR /&gt;&lt;BR /&gt;I want to get asmdev in one column and karthi in second column with heading's .</description>
      <pubDate>Thu, 10 Sep 2009 09:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495014#M653395</guid>
      <dc:creator>Karthika_2</dc:creator>
      <dc:date>2009-09-10T09:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495015#M653396</link>
      <description>I'm not quite sure what you're doing.  Are you using uuencode to send your .csv file as an attachment to your mail account, which is then restored with a .xls extension.  You then open this file in Excel and it has all the data in one column - not split into columns as you would like.  Is that correct?&lt;BR /&gt;&lt;BR /&gt;If so, I would have thought you should be sending this file as a .csv and opening it in Excel - then if needed specifying that your field delimiter is a ,&lt;BR /&gt;&lt;BR /&gt;Hope this helps, Paul</description>
      <pubDate>Thu, 10 Sep 2009 10:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495015#M653396</guid>
      <dc:creator>Paul McCleary</dc:creator>
      <dc:date>2009-09-10T10:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495016#M653397</link>
      <description>$ cpan Spreadsheet::Read&lt;BR /&gt;:&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;Answer "yes" to the optional install questions&lt;BR /&gt;&lt;BR /&gt;$ cd /tmp&lt;BR /&gt;$ csv2xls file.csv&lt;BR /&gt;$ ls -l file.xls&lt;BR /&gt;&lt;BR /&gt;That what you want?&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 10 Sep 2009 11:07:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495016#M653397</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2009-09-10T11:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495017#M653398</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Yes, that is correct ..I want all the data in different columns.&lt;BR /&gt;&lt;BR /&gt;I want to setup a cron which does all these conversions and send a full completed excel sheet to my inbox. &lt;BR /&gt;&lt;BR /&gt;Please guide me !!!&lt;BR /&gt;&lt;BR /&gt;Merijn,&lt;BR /&gt;&lt;BR /&gt;I tried your suggestion,&lt;BR /&gt;&lt;BR /&gt;I got the message,&lt;BR /&gt;csv2xls:not found &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Karthi</description>
      <pubDate>Thu, 10 Sep 2009 11:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495017#M653398</guid>
      <dc:creator>Karthika_2</dc:creator>
      <dc:date>2009-09-10T11:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495018#M653399</link>
      <description>Ahhgr, I thought is was in Spreadsheet::Read, but it is in Text::CSV_XS&lt;BR /&gt;&lt;BR /&gt;$ cd /usr/local/bin&lt;BR /&gt;$ wget --output-document=csv2xls '&lt;A href="http://repo.or.cz/w/Text-CSV_XS.git?a=blob_plain;f=examples/csv2xls;hb=HEAD'" target="_blank"&gt;http://repo.or.cz/w/Text-CSV_XS.git?a=blob_plain;f=examples/csv2xls;hb=HEAD'&lt;/A&gt;&lt;BR /&gt;$ ex -v csv2xls&lt;BR /&gt;&lt;BR /&gt;-- edit the first line to point to your perl&lt;BR /&gt;&lt;BR /&gt;$ chmod 755 csv2xls&lt;BR /&gt;&lt;BR /&gt;Now try again.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 10 Sep 2009 11:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495018#M653399</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2009-09-10T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495019#M653400</link>
      <description>I thought a .csv file was already recognised by Excel as a valid extension - if not you could set files with that extension to be opened by Excel.  Excel should be able to open a comma separated .csv file without you needing to do anything.&lt;BR /&gt;&lt;BR /&gt;I would change your approach so that uuencode has the remotedest arguement of /test.csv and does not change the extension to .xls</description>
      <pubDate>Thu, 10 Sep 2009 11:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495019#M653400</guid>
      <dc:creator>Paul McCleary</dc:creator>
      <dc:date>2009-09-10T11:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495020#M653401</link>
      <description>Merjin,&lt;BR /&gt;&lt;BR /&gt;ksh : wget : not found.&lt;BR /&gt;&lt;BR /&gt;Please tell me anything should be installed to use csv2xls command ?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Karthi.</description>
      <pubDate>Thu, 10 Sep 2009 11:38:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495020#M653401</guid>
      <dc:creator>Karthika_2</dc:creator>
      <dc:date>2009-09-10T11:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495021#M653402</link>
      <description>Paul, Excel tries to pretend it recognizes CSV, but it is extremely depending on the *current* locale.&lt;BR /&gt;&lt;BR /&gt;If you "open" a .CSV file in Excell, it will expect the current list-separator from the current locale to be the field sep. In e.g. Dutch, windows defaults that to a semi-colon, causing open actions to fail.&lt;BR /&gt;You can still open Excel first and then import the data, which is much more reliable, but still fails for any field that Excel thinks that it looks like a date, even if it is quoted, so a numer like 20090910 will be converted to '9 Oct 2009' even in Dutch locale. Hatefull. Maybe it is better in post-Excel-2003, but still very very unreliable&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 10 Sep 2009 11:41:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495021#M653402</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2009-09-10T11:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495022#M653403</link>
      <description>&amp;gt;&amp;gt; In my script I set heading off because , every 10 records once I am getting &lt;BR /&gt;&lt;BR /&gt;Don't set teh heading off... how can excel make up column names?!?&lt;BR /&gt;Using SQLplus just set pagesize to zero and it will only print the heading once. The defaults pagesize is just 14, explaining the repeats.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; I wrote a script to extract data from Oracle DB and place it in a text file , and I have coverted .txt file into comma seperated .csv file and I sent it to my mail box . &lt;BR /&gt;&lt;BR /&gt;Google for "+oracle +csv +output"&lt;BR /&gt;- Using SQLplus?&lt;BR /&gt;&lt;BR /&gt;You'll want to disable a lot of the formatting:&lt;BR /&gt;&lt;BR /&gt;set echo off &lt;BR /&gt;set feedback off &lt;BR /&gt;set linesize 10000 &lt;BR /&gt;set pagesize 0 &lt;BR /&gt;set sqlprompt '' &lt;BR /&gt;set trimspool on&lt;BR /&gt;set space 0&lt;BR /&gt;set truncate on&lt;BR /&gt;&lt;BR /&gt;And start with sqlplus -s&lt;BR /&gt;&lt;BR /&gt;- Using AWK or PERL or SHELL for post process?&lt;BR /&gt;&lt;BR /&gt;Should be trivial to recognize a repeated header line and not output that.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You may want to "Ask Tom" this question.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;A href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:88212348059" target="_blank"&gt;http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:88212348059&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or the intersting sylk alternative through the (not standard provided) Owa_sylk utility.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://asktom.oracle.com/pls/asktom/f?p=100:11:2327399712566997::::P11_QUESTION_ID:769425837805" target="_blank"&gt;http://asktom.oracle.com/pls/asktom/f?p=100:11:2327399712566997::::P11_QUESTION_ID:769425837805&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Sep 2009 11:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495022#M653403</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-09-10T11:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495023#M653404</link>
      <description>Hey Paul,&lt;BR /&gt;&lt;BR /&gt;Its working :) &lt;BR /&gt;&lt;BR /&gt;uuencode /test.csv /test.csv | mailx -s "test" karthimu@in.abc.com&lt;BR /&gt;&lt;BR /&gt;I am receiving excel in my inbox with data in different columns. &lt;BR /&gt;&lt;BR /&gt;Thanks a lot !!&lt;BR /&gt;Regards,&lt;BR /&gt;Karthi</description>
      <pubDate>Thu, 10 Sep 2009 11:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495023#M653404</guid>
      <dc:creator>Karthika_2</dc:creator>
      <dc:date>2009-09-10T11:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495024#M653405</link>
      <description>Karthika, you can also open that link in your browser, and then Ctrl-S to save the file&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ who has a hard time imagining people not having wget somewhere ]</description>
      <pubDate>Thu, 10 Sep 2009 11:57:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495024#M653405</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2009-09-10T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Converting .CSV file into .XLS file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495025#M653406</link>
      <description>Hi Karthika,&lt;BR /&gt;&lt;BR /&gt;Glad its working, I thought it might, but had no way of testing so its good to know! :-)&lt;BR /&gt;&lt;BR /&gt;Hi H.Merrjn,&lt;BR /&gt;&lt;BR /&gt;Interesting point, I never thought of any locale differences.  I did just try opening a comma separated .csv file in Excel with numbers like 20090910 in some fields and all the cells had a General format type - so the number is displayed as written, not as a date.  This is in Excel 2003 SP3 with a UK locale.  So I guess it seems to work ok for me and my configuration.&lt;BR /&gt;&lt;BR /&gt;Regards, Paul&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Sep 2009 13:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-csv-file-into-xls-file/m-p/4495025#M653406</guid>
      <dc:creator>Paul McCleary</dc:creator>
      <dc:date>2009-09-10T13:44:14Z</dc:date>
    </item>
  </channel>
</rss>

