<?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: Improper order for GUESSINGROWS=MAX ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735154#M229014</link>
    <description>&lt;P&gt;My understanding is that there is a default if you use the SAS EXCEL engine and it is set in the Windows Registry where TypeGuessRows to 8 rows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot38.JPG" style="width: 671px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58304i00E6B51078C4E90E/image-dimensions/671x327?v=v2" width="671" height="327" role="button" title="screenshot38.JPG" alt="screenshot38.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 01:52:01 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-04-19T01:52:01Z</dc:date>
    <item>
      <title>Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735139#M229003</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today, I put the GUESSINGROW=MAX to my code and it announce an error even I checked with some documents&lt;/P&gt;
&lt;P&gt;My code is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1         + proc import datafile= "C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\leniency &amp;amp; 
operating\dataxlsx\ARGENTINAARS"       out= ARGENTINA_sheet1      dbms= xlsx       replace;
NOTE: The previous statement has been deleted.
NOTE: Line generated by the CALL EXECUTE routine.
1         +
      guessingrows=max;      range= "Sheet1$A:X";      getnames= yes;

____________                                                                                                                        

180
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The problem here is the code &lt;STRONG&gt;GUESSINGROW=MAX&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I check with this document and I think I put the statement above in the correct order already, I am wondering if I did anything wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you and warm regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 23:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735139#M229003</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-04-18T23:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735141#M229005</link>
      <description>&lt;P&gt;GUESSINGROWS is not a valid option for Excel spreadsheets. If you want to use it convert your spreadsheet to a CSV where it is a valid option.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 23:23:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735141#M229005</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-18T23:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735143#M229006</link>
      <description>&lt;P&gt;So, can I ask, how many rows proc import with excel try to guess for the attributes of one variables? Is it 20 rows as default?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 23:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735143#M229006</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-04-18T23:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735149#M229010</link>
      <description>&lt;P&gt;With XLSX SAS inspects all rows so result as if you would (could) set guessingrow=max.&lt;/P&gt;
&lt;P&gt;I've done in the past a test with a .xlsx where I've had a column with all numeric values and only on the millionth row a character value. The import resulted in a character variable.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 00:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735149#M229010</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-04-19T00:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735151#M229012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting, do you have any document about this statement? I am curious about that. The last time I saw a sentence "SAS will try its best to guess the attribute of a variables" but not say something explicitly as yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;With XLSX SAS inspects all rows so result as if you would (could) set guessingrow=max&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 19 Apr 2021 00:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735151#M229012</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-04-19T00:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735152#M229013</link>
      <description>&lt;P&gt;No, I don't have something in writing at hand. I've just done a test where I've created and Excel with 1M rows where I've had only in the cell in row 1M a character (and in all the cells before digits only). Then I've run Proc Import and the resulting variable was of type character. Without this character in the millionth cell the result was a numerical variable.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 01:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735152#M229013</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-04-19T01:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735154#M229014</link>
      <description>&lt;P&gt;My understanding is that there is a default if you use the SAS EXCEL engine and it is set in the Windows Registry where TypeGuessRows to 8 rows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot38.JPG" style="width: 671px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58304i00E6B51078C4E90E/image-dimensions/671x327?v=v2" width="671" height="327" role="button" title="screenshot38.JPG" alt="screenshot38.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 01:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735154#M229014</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-19T01:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735155#M229015</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&lt;BR /&gt;Thank you for your reply!&lt;BR /&gt;So, you means GUESSINGROW =8 in your case?. Can we adjust this value?. And if it the case, why &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; has his result as mentioned. &lt;BR /&gt;&lt;BR /&gt;Warmest regards.&lt;BR /&gt;Phil.&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Apr 2021 02:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735155#M229015</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-04-19T02:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735157#M229017</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp; - I'm referring to the SAS EXCEL engine and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;is referring to the SAS XLSX engine. The SAS EXCEL engine uses the Microsoft JET engine which is governed by the Windows Registry setting. Yes you can modify it - a value of 0 will maximise the number of guessing rows. However if you corrupt the&amp;nbsp;Windows Registry then your PC may refuse to run so change at your own risk!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This excellent paper explains more details:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/020-31.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/020-31.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DBSASTYPE option mentioned in the paper may be worth exploring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 03:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735157#M229017</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-19T03:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735168#M229022</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp;The code in your initial post shows that you're using the XLSX engine where changing the value in the registry doesn't apply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This change in the registry would apply for the default used with the EXCEL engine if you don't explicitly define guessingrow=&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 06:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735168#M229022</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-04-19T06:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Improper order for GUESSINGROWS=MAX ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735259#M229046</link>
      <description>&lt;P&gt;I thing the error here is in PROC IMPORT statement. DATAFILE option doesn't refer to xlsx file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE= "C:\USERS\....\ARGENTINAARS.xlsx"&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc import datafile= "C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\leniency &amp;amp; 
operating\dataxlsx\ARGENTINAARS"       out= ARGENTINA_sheet1      dbms= xlsx       replace;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 14:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Improper-order-for-GUESSINGROWS-MAX/m-p/735259#M229046</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2021-04-19T14:30:09Z</dc:date>
    </item>
  </channel>
</rss>

