<?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 SAS 9.1.3 Hash where option problem in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41489#M10734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The SAS code in the below or attachment will cause error in SAS 9.1.3&amp;nbsp; but it won't cause error at SAS 9.2.Is&amp;nbsp; there anybody have ever met the same kind problem before? Is there any solution?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;George&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data Base; &lt;/P&gt;&lt;P&gt;input id $ amount; &lt;/P&gt;&lt;P&gt;datalines; &lt;/P&gt;&lt;P&gt;a&amp;nbsp; 189 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 160 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 188 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 165 &lt;/P&gt;&lt;P&gt;a&amp;nbsp; 145 &lt;/P&gt;&lt;P&gt;a&amp;nbsp; 199 &lt;/P&gt;&lt;P&gt;b 198 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 345 &lt;/P&gt;&lt;P&gt;c&amp;nbsp; 298 &lt;/P&gt;&lt;P&gt;c 165 &lt;/P&gt;&lt;P&gt;d 235 &lt;/P&gt;&lt;P&gt;d 678 &lt;/P&gt;&lt;P&gt;e 161 &lt;/P&gt;&lt;P&gt;e 285 &lt;/P&gt;&lt;P&gt;f 278 &lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;data Name; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input id $ name $ n; &lt;/P&gt;&lt;P&gt;datalines; &lt;/P&gt;&lt;P&gt;a Jose 1 &lt;/P&gt;&lt;P&gt;b Hose 2 &lt;/P&gt;&lt;P&gt;c Jerry 3 &lt;/P&gt;&lt;P&gt;d Sara 4 &lt;/P&gt;&lt;P&gt;e Tom 5 &lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;data test6(drop=rc); &lt;/P&gt;&lt;P&gt;if 0 then set name; &lt;/P&gt;&lt;P&gt;if _n_ = 1 then do; &lt;/P&gt;&lt;P&gt;&amp;nbsp; dcl hash h(dataset: 'name (where=(n &amp;lt; 3))'); &lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definekey("id"); &lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definedata("id","name",'n'); &lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definedone(); &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;do until(eof); &lt;/P&gt;&lt;P&gt;set base end=eof; &lt;/P&gt;&lt;P&gt;name=''; &lt;/P&gt;&lt;P&gt;rc=h.find(); &lt;/P&gt;&lt;P&gt;output; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 14:41:24 GMT</pubDate>
    <dc:creator>George_S</dc:creator>
    <dc:date>2012-03-23T14:41:24Z</dc:date>
    <item>
      <title>SAS 9.1.3 Hash where option problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41489#M10734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The SAS code in the below or attachment will cause error in SAS 9.1.3&amp;nbsp; but it won't cause error at SAS 9.2.Is&amp;nbsp; there anybody have ever met the same kind problem before? Is there any solution?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;George&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data Base; &lt;/P&gt;&lt;P&gt;input id $ amount; &lt;/P&gt;&lt;P&gt;datalines; &lt;/P&gt;&lt;P&gt;a&amp;nbsp; 189 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 160 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 188 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 165 &lt;/P&gt;&lt;P&gt;a&amp;nbsp; 145 &lt;/P&gt;&lt;P&gt;a&amp;nbsp; 199 &lt;/P&gt;&lt;P&gt;b 198 &lt;/P&gt;&lt;P&gt;b&amp;nbsp; 345 &lt;/P&gt;&lt;P&gt;c&amp;nbsp; 298 &lt;/P&gt;&lt;P&gt;c 165 &lt;/P&gt;&lt;P&gt;d 235 &lt;/P&gt;&lt;P&gt;d 678 &lt;/P&gt;&lt;P&gt;e 161 &lt;/P&gt;&lt;P&gt;e 285 &lt;/P&gt;&lt;P&gt;f 278 &lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;data Name; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input id $ name $ n; &lt;/P&gt;&lt;P&gt;datalines; &lt;/P&gt;&lt;P&gt;a Jose 1 &lt;/P&gt;&lt;P&gt;b Hose 2 &lt;/P&gt;&lt;P&gt;c Jerry 3 &lt;/P&gt;&lt;P&gt;d Sara 4 &lt;/P&gt;&lt;P&gt;e Tom 5 &lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;data test6(drop=rc); &lt;/P&gt;&lt;P&gt;if 0 then set name; &lt;/P&gt;&lt;P&gt;if _n_ = 1 then do; &lt;/P&gt;&lt;P&gt;&amp;nbsp; dcl hash h(dataset: 'name (where=(n &amp;lt; 3))'); &lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definekey("id"); &lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definedata("id","name",'n'); &lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definedone(); &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;do until(eof); &lt;/P&gt;&lt;P&gt;set base end=eof; &lt;/P&gt;&lt;P&gt;name=''; &lt;/P&gt;&lt;P&gt;rc=h.find(); &lt;/P&gt;&lt;P&gt;output; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 14:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41489#M10734</guid>
      <dc:creator>George_S</dc:creator>
      <dc:date>2012-03-23T14:41:24Z</dc:date>
    </item>
    <item>
      <title>SAS 9.1.3 Hash where option problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41490#M10735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I didn't find any discussion relate to this problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 16:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41490#M10735</guid>
      <dc:creator>George_S</dc:creator>
      <dc:date>2012-03-23T16:45:15Z</dc:date>
    </item>
    <item>
      <title>SAS 9.1.3 Hash where option problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41491#M10736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of error message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 16:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41491#M10736</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-23T16:57:42Z</dc:date>
    </item>
    <item>
      <title>SAS 9.1.3 Hash where option problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41492#M10737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: The value NAME (WHERE=(N &amp;lt; 3)) is not a valid SAS name.&lt;/P&gt;&lt;P&gt;ERROR: Hash data set load failed at line 35 column 3.&lt;/P&gt;&lt;P&gt;ERROR: DATA STEP Component Object failure. Aborted during the EXECUTION phase.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.BASE.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.TEST6 may be incomplete. When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;observations and 4 variables.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It should be casued by where option.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41492#M10737</guid>
      <dc:creator>George_S</dc:creator>
      <dc:date>2012-03-23T17:43:33Z</dc:date>
    </item>
    <item>
      <title>SAS 9.1.3 Hash where option problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41493#M10738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently data set options are not supported in hash() when SAS 9.1.3. You will have to remove the options and split it up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data name1;&lt;/P&gt;&lt;P&gt;set name (where=(n&amp;lt;3));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test6;&lt;/P&gt;&lt;P&gt;if 0 then set name1;&lt;/P&gt;&lt;P&gt;if _n_ = 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dcl hash h(dataset: 'name1');&lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definekey("id");&lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definedata("id","name",'n');&lt;/P&gt;&lt;P&gt;&amp;nbsp; h.definedone();&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;do until(eof);&lt;/P&gt;&lt;P&gt;set base end=eof;&lt;/P&gt;&lt;P&gt;name='';&lt;/P&gt;&lt;P&gt;rc=h.find();&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41493#M10738</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-23T17:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.1.3 Hash where option problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41494#M10739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Hai.Kuo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any hotfix for SAS9.1.3 to solute this problem ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 21:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41494#M10739</guid>
      <dc:creator>George_S</dc:creator>
      <dc:date>2012-03-23T21:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.1.3 Hash where option problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41495#M10740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not I am aware of. It is not a bug, it is just not supported. If you are keen on hash, you have to upgrade, the difference is day and night, before 9.2, I don't even bother with hash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 21:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-9-1-3-Hash-where-option-problem/m-p/41495#M10740</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-23T21:58:14Z</dc:date>
    </item>
  </channel>
</rss>

