<?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: Proc export with guessingrows in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-with-guessingrows/m-p/276183#M58634</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tip, avoid coding all in upper case, it makes code hard to read. &amp;nbsp;You are quite right that guessingrows only applies to delimited files:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p13kvtl8ezj13in17i6m99jypcwi.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p13kvtl8ezj13in17i6m99jypcwi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The guessing rows for Excel is defined in a registry entry - this is the library of system options and such like for your OS - so you would need your IT group to change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why can you not use CSV? &amp;nbsp;Just save the file from Excel and choose file type CSV, save it somewhere then write a datastep import program for it. &amp;nbsp;That would always be my preferred option. &amp;nbsp;The second question I had was why would you specify the guessingrows as 1000, its not clear why the decision on that. &amp;nbsp;You can force certain formats by adding a row to excel at the top which is of the type and length you require.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2016 08:26:47 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-06-09T08:26:47Z</dc:date>
    <item>
      <title>Proc export with guessingrows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-with-guessingrows/m-p/276179#M58633</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import data from excel (I can not use csv) however guessing rows i want to fix as 10000&lt;/P&gt;&lt;P&gt;I believe i can not use guessing rows as DBMS EXCEL.&lt;/P&gt;&lt;P&gt;Please suggest .&lt;/P&gt;&lt;P&gt;Thanks a lot .&lt;/P&gt;&lt;P&gt;==================================================&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= AMPO.&amp;amp;out.&lt;BR /&gt;DATAFILE= "&amp;amp;path.&amp;amp;Source."&lt;BR /&gt;&lt;BR /&gt;DBMS=EXCEL REPLACE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RANGE="&amp;amp;sheet.$" ;&lt;BR /&gt;GETNAMES=YES ;&lt;BR /&gt;&lt;BR /&gt;MIXED=Yes;&lt;/P&gt;&lt;P&gt;Guessingrows=1000;&lt;BR /&gt;SCANTEXT=YES;&lt;BR /&gt;USEDATE=YES;&lt;BR /&gt;SCANTIME=YES;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 08:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-with-guessingrows/m-p/276179#M58633</guid>
      <dc:creator>Dd07</dc:creator>
      <dc:date>2016-06-09T08:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export with guessingrows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-with-guessingrows/m-p/276183#M58634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tip, avoid coding all in upper case, it makes code hard to read. &amp;nbsp;You are quite right that guessingrows only applies to delimited files:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p13kvtl8ezj13in17i6m99jypcwi.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p13kvtl8ezj13in17i6m99jypcwi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The guessing rows for Excel is defined in a registry entry - this is the library of system options and such like for your OS - so you would need your IT group to change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why can you not use CSV? &amp;nbsp;Just save the file from Excel and choose file type CSV, save it somewhere then write a datastep import program for it. &amp;nbsp;That would always be my preferred option. &amp;nbsp;The second question I had was why would you specify the guessingrows as 1000, its not clear why the decision on that. &amp;nbsp;You can force certain formats by adding a row to excel at the top which is of the type and length you require.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 08:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-with-guessingrows/m-p/276183#M58634</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-09T08:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export with guessingrows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-with-guessingrows/m-p/276205#M58642</link>
      <description>&lt;P&gt;If you have a later version of SAS try DBMS=XLSX&lt;/P&gt;
&lt;P&gt;However there's no absolute way to specify the variable type while using Excel so you may need to implement fixes after the initial import.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 09:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-with-guessingrows/m-p/276205#M58642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-09T09:48:52Z</dc:date>
    </item>
  </channel>
</rss>

