<?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: I want to read an Excel spreadsheet without truncating values in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156432#M2763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;strings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 12:17:23 GMT</pubDate>
    <dc:creator>HWSteinberg</dc:creator>
    <dc:date>2014-05-13T12:17:23Z</dc:date>
    <item>
      <title>I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156429#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to read an Excel spreadsheet without truncating values where the first rows contain only short values. I know the guessingrows statement for delimited files but that's not applicable to xls. To create a tab delimited file is not an option as the spreadsheet contains cells with CR characters ('0D'x) which create addtional lines when exporting from Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 10:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156429#M2760</guid>
      <dc:creator>HWSteinberg</dc:creator>
      <dc:date>2014-05-13T10:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156430#M2761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about numbers or strings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 10:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156430#M2761</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-13T10:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156431#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) File-&amp;gt;SaveAs-&amp;gt;CSV.&amp;nbsp; Datastep import with delimiter=",". where col1 ne "";&lt;/P&gt;&lt;P&gt;2) Add XXXXXXX to the length required in your spreadsheet as first row.&lt;/P&gt;&lt;P&gt;3) Check out libname xls, which may or may not work.&lt;/P&gt;&lt;P&gt;4) There is also a system option call something like guessrows in the systems registry which should be updated to a large number. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 10:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156431#M2762</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-05-13T10:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156432#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;strings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 12:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156432#M2763</guid>
      <dc:creator>HWSteinberg</dc:creator>
      <dc:date>2014-05-13T12:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156433#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but neither csv, tab or other delimiter will work unless you find an option to not interprete CRs in single cells as carriage return and thus new line. And as I said I know that guessingrows works with csv, tab etc but not xls (I assume for the entry in the registry holds the same)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 12:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156433#M2764</guid>
      <dc:creator>HWSteinberg</dc:creator>
      <dc:date>2014-05-13T12:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156434#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you could post the Excel file to show these carriage returns?&amp;nbsp; Do you mean you have a special symbol for carriage returns in your data or just the alt/enter within cell?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The guessing rows is applicable to proc import for Excel files, please see the guidance at: &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n18jyszn33umngn14czw2qfw7thc.htm" title="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n18jyszn33umngn14czw2qfw7thc.htm"&gt;Base SAS(R) 9.3 Procedures Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think the registry change affects both, the actual option on the import may not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to add, have you tried using the libname:&lt;/P&gt;&lt;P&gt;libname mybook excel "....xls" mixed=yes getnames=yes;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 12:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156434#M2765</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-05-13T12:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156435#M2766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE class="procSummary"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="summaryInteraction"&gt;Interaction:&lt;/TD&gt;&lt;TD class="summaryValue"&gt;The GUESSINGROWS statement is valid only for delimited files.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Did you see this in your reference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I'm using SAS 9.1.3 remote for a client, so I can't easily check all possibilities. But I see libname is worth a trial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to CR, this is inserted by Excel when you enter a line wrap in a cell (Alt+Enter). You can see this when you copy the cell content into an Editor with optional hex display (like UltraEdit). And exporting from Excel to a delimited file, then additionally adds a CRLF ('0D0A'x) after the '0D'x &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 16:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156435#M2766</guid>
      <dc:creator>HWSteinberg</dc:creator>
      <dc:date>2014-05-13T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: I want to read an Excel spreadsheet without truncating values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156436#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I posted the wrong web page.&amp;nbsp; Please see this one: &lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103761.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103761.htm"&gt;SAS/ACCESS(R) 9.2 Interface to PC Files: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Specifically the section below: MIXED=YES|NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also find/replace in Excel:&lt;/P&gt;&lt;P&gt;Open the find/replace dialog, in the find box do Alt 010 - that zero one zero.&amp;nbsp; In replace put a space.&amp;nbsp; I have seen it stated that Cntrl + j instead of the Alt works.&amp;nbsp; You could also write a small VBA and replace CHAR(10) with a space on all cells.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 18:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/I-want-to-read-an-Excel-spreadsheet-without-truncating-values/m-p/156436#M2767</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-05-13T18:11:39Z</dc:date>
    </item>
  </channel>
</rss>

