<?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 converting excel file to SAS dataset using xlxp2sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-SAS-dataset-using-xlxp2sas/m-p/85843#M256962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am converting an excel file to SAS dataset using xlxp2sas. The reason I am using xlxp2sas is:&lt;/P&gt;&lt;P&gt;My excel file has columns with text more then 250 characters and I am using UNIX(9.2) system, and the sheet name has special characters, and the header names has special characters ..phew!!&lt;/P&gt;&lt;P&gt;the excel libname statement doesnt work on UNIX, and Proc import causes truncation. In short, I have to use xlxp2sas.&lt;/P&gt;&lt;P&gt;Nowwhen I use it on test file(with 1 row, 1 column), even throws error "ERROR: Expected an XML document prolog or element.", even on test file.&lt;/P&gt;&lt;P&gt;I am using the attached map file.&lt;/P&gt;&lt;P&gt;Do anyone has any idea to resolve this pesky error???&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;%xlxp2sas(excelfile=./test.xls,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapfile=./excelxp.map);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 23:21:03 GMT</pubDate>
    <dc:creator>maggi2410</dc:creator>
    <dc:date>2012-11-29T23:21:03Z</dc:date>
    <item>
      <title>converting excel file to SAS dataset using xlxp2sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-SAS-dataset-using-xlxp2sas/m-p/85843#M256962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am converting an excel file to SAS dataset using xlxp2sas. The reason I am using xlxp2sas is:&lt;/P&gt;&lt;P&gt;My excel file has columns with text more then 250 characters and I am using UNIX(9.2) system, and the sheet name has special characters, and the header names has special characters ..phew!!&lt;/P&gt;&lt;P&gt;the excel libname statement doesnt work on UNIX, and Proc import causes truncation. In short, I have to use xlxp2sas.&lt;/P&gt;&lt;P&gt;Nowwhen I use it on test file(with 1 row, 1 column), even throws error "ERROR: Expected an XML document prolog or element.", even on test file.&lt;/P&gt;&lt;P&gt;I am using the attached map file.&lt;/P&gt;&lt;P&gt;Do anyone has any idea to resolve this pesky error???&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;%xlxp2sas(excelfile=./test.xls,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapfile=./excelxp.map);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 23:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-SAS-dataset-using-xlxp2sas/m-p/85843#M256962</guid>
      <dc:creator>maggi2410</dc:creator>
      <dc:date>2012-11-29T23:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to SAS dataset using xlxp2sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-SAS-dataset-using-xlxp2sas/m-p/85844#M256963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a simple excel file, 2003, not an xml file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 23:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-SAS-dataset-using-xlxp2sas/m-p/85844#M256963</guid>
      <dc:creator>maggi2410</dc:creator>
      <dc:date>2012-11-29T23:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: converting excel file to SAS dataset using xlxp2sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-SAS-dataset-using-xlxp2sas/m-p/85845#M256964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I believe that program ONLY works on Excel XML as input: &lt;A href="http://www2.sas.com/proceedings/sugi30/136-30.pdf" title="http://www2.sas.com/proceedings/sugi30/136-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/136-30.pdf&lt;/A&gt; and would not work on an Excel 2003 non-XML format file. You might want to check with Tech Support to be absolutely sure, but when I look at the paper that describes the program,I don't see any references to using it on proprietary Excel format files. The paper author includes the steps for how to explicitly save your Excel file as XML in order to use the macro program to read the Excel XML file into SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 04:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/converting-excel-file-to-SAS-dataset-using-xlxp2sas/m-p/85845#M256964</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-11-30T04:19:59Z</dc:date>
    </item>
  </channel>
</rss>

