<?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: data step to hash table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676695#M204063</link>
    <description>&lt;DIV class="text-wrap tlid-copy-target"&gt;
&lt;DIV class="result-shield-container tlid-copy-target" tabindex="0"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="" title=""&gt;OK thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 Aug 2020 11:45:14 GMT</pubDate>
    <dc:creator>makset</dc:creator>
    <dc:date>2020-08-14T11:45:14Z</dc:date>
    <item>
      <title>data step to hash table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676688#M204060</link>
      <description>&lt;DIV class="text-wrap tlid-copy-target"&gt;
&lt;DIV class="result-shield-container tlid-copy-target" tabindex="0"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="" title=""&gt;I'm just learning the hash table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="" title=""&gt;can anyone change my data step to hash table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="result-shield-container tlid-copy-target" tabindex="0"&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
informat datetime  datetime21.;
input datetime	high_temp	low_temp	end_temp; 
format datetime  datetime21.;
cards;
30APR2020:00:00:00	31.3	25.6	29.4
30APR2020:00:00:30	29.9	28.4	29.2
30APR2020:00:01:00	29.5	28.9	29.2
30APR2020:00:01:30	29.5	28.6	29
30APR2020:00:02:00	30		28.8	29.9
30APR2020:00:02:30	30.3	29.5	29.9
30APR2020:00:03:00	30.3	29.2	29.9
30APR2020:00:03:30	30.3	29		30.1
30APR2020:00:04:00	30.2	29.3	29.3
30APR2020:00:04:30	30.6	29.4	29.4
30APR2020:00:05:00	30.8	29.6	29.6
30APR2020:00:05:30	31		30		30.3
30APR2020:00:06:00	31		29.7	30.2
30APR2020:00:06:30	31		29.7	30.5
30APR2020:00:07:00	30.4	29.4	29.6
30APR2020:00:07:30	30		27.6	28.4
30APR2020:00:08:00	29.6	28.1	28.9
30APR2020:00:08:30	30.2	28.6	29.4
30APR2020:00:09:00	30		28.9	29.3
30APR2020:00:09:30	30.5	28.4	28.4
30APR2020:00:10:00	31.7	30.9	31.2
30APR2020:00:10:30	32		30.6	30.6
30APR2020:00:11:00	31.4	29.7	30.8
30APR2020:00:11:30	31.1	29.3	29.8
30APR2020:00:12:00	29.4	28.6	29
30APR2020:00:12:30	29.4	28.2	29
30APR2020:00:13:00	30.4	28.7	30.4
30APR2020:00:13:30	31.7	29.5	30.8
30APR2020:00:14:00	33.8	31.8	33
30APR2020:00:14:30	33		30.5	31.2
30APR2020:00:15:00	31.2	30.4	30.4
30APR2020:00:15:30	30.5	30		30
30APR2020:00:16:00	30.6	29		30.4
30APR2020:00:16:30	30		28.9	29.7
30APR2020:00:17:00	29.9	29.3	29.5
30APR2020:00:17:30	30.6	29.3	29.3
30APR2020:00:18:00	30.2	29.3	29.3
30APR2020:00:18:30	29.6	28.5	28.5
30APR2020:00:19:00	29.6	27.9	28.4
30APR2020:00:19:30	29.4	28.5	28.5
30APR2020:00:20:30	28.8	28		28
30APR2020:00:21:00	31.1	24.2	31
30APR2020:00:21:30	31.1	29.6	31.1
30APR2020:00:22:00	30.7	29.7	30.2
30APR2020:00:22:30	30.4	29.7	29.7
30APR2020:00:23:00	30.4	29.5	30.3
30APR2020:00:23:30	30.5	29.4	30.5
30APR2020:00:24:00	31		29.1	30.6
30APR2020:00:24:30	30.4	29.3	30.4
30APR2020:00:25:00	31.9	29.9	30.6
30APR2020:00:25:30	31.6	30.2	31.2
30APR2020:00:26:00	31		29.6	29.6
30APR2020:00:26:30	30.6	28.4	28.4
30APR2020:00:27:00	30.7	29.7	30.4
30APR2020:00:27:30	30.8	29.7	30.4
30APR2020:00:28:00	31.2	30		30.7
30APR2020:00:29:00	31		29.5	30.1
30APR2020:00:29:30	30.4	29.4	29.7
30APR2020:00:30:00	30.3	28.7	30.3
30APR2020:00:30:30	30.1	29.6	30.1
30APR2020:00:31:00	30		28.6	28.7
30APR2020:00:31:30	29.9	28.1	28.1
30APR2020:00:32:00	30.3	29.6	29.6
30APR2020:00:32:30	30.7	29.2	29.8
30APR2020:00:33:00	29.4	28.5	28.5
30APR2020:00:33:30	29.7	28.7	29.2
30APR2020:00:34:00	30.2	28.9	30.2
30APR2020:00:34:30	29.8	29		29.8
30APR2020:00:35:00	30.4	28.8	29.6
30APR2020:00:35:30	30.2	29		29.6
30APR2020:00:36:00	30.1	29.3	29.5
30APR2020:00:36:30	30.4	28.6	29.6
30APR2020:00:37:00	30.7	29.4	30
30APR2020:00:37:30	30.9	29.2	29.2
30APR2020:00:38:00	30.2	28.8	29.6
30APR2020:00:38:30	29.8	28.9	29.3
30APR2020:00:39:00	29.6	28.7	28.7
30APR2020:00:40:00	30.7	28.6	30.7
30APR2020:00:40:30	30.9	29.3	30.4
30APR2020:00:41:00	30.5	29.5	30.2
30APR2020:00:41:30	30.6	28.6	29.9
30APR2020:00:42:00	31.3	29.4	31.3
30APR2020:00:42:30	30.9	29.3	29.9
30APR2020:00:43:00	30.1	28.9	29.7
30APR2020:00:43:30	30.5	28.8	30.5
30APR2020:00:44:00	30.2	28.4	28.4
30APR2020:00:44:30	30.2	28		29.5
30APR2020:00:45:00	30.4	29.3	29.3
30APR2020:00:45:30	30.7	28.9	30.2
30APR2020:00:46:00	30.1	28.8	29.9
30APR2020:00:46:30	29.6	28.8	29.3
30APR2020:00:47:00	29		26.6	27.8
30APR2020:00:47:30	27.4	26.4	27.4
30APR2020:00:48:00	29.8	27.3	29.2
30APR2020:00:48:30	29.9	29.2	29.2
30APR2020:00:49:00	29.9	28.8	28.8
30APR2020:00:49:30	30.3	28.7	29.3
30APR2020:00:50:00	30		28.6	29.2
30APR2020:00:51:00	29.4	28.8	29.4
30APR2020:00:51:30	29.9	28.5	29.9
run;

%let var1 = 0.5;
%let high_temp = 30;
%let low_temp = 29;
%let end_temp1 = 29;
%let end_temp2 = 30;


data wont;
set a;
if  (abs(high_temp - &amp;amp;high_temp)) &amp;lt;= &amp;amp;var1  &amp;amp; (abs(low_temp - &amp;amp;low_temp)) &amp;lt;= &amp;amp;var1    &amp;amp; (abs(end_temp - &amp;amp;end_temp1)) &amp;lt;= &amp;amp;var1 |
	(abs(high_temp - &amp;amp;high_temp)) &amp;lt;= &amp;amp;var1  &amp;amp; (abs(low_temp - &amp;amp;low_temp)) &amp;lt;= &amp;amp;var1    &amp;amp; (abs(end_temp - &amp;amp;end_temp2)) &amp;lt;= &amp;amp;var1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;SPAN class="tlid-translation translation"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="" title=""&gt;best regards and thank you for your help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="tlid-result-transliteration-container result-transliteration-container transliteration-container"&gt;
&lt;DIV class="tlid-transliteration-content transliteration-content full"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676688#M204060</guid>
      <dc:creator>makset</dc:creator>
      <dc:date>2020-08-14T11:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: data step to hash table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676692#M204061</link>
      <description>&lt;P&gt;What do you want the hash object to do here?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676692#M204061</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-08-14T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: data step to hash table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676694#M204062</link>
      <description>&lt;P&gt;Straight IF logic is probably the best for what is shown, and there is no need to involve hash object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A better learning of hash would be to study&amp;nbsp; a book such as "Data Management Solutions Using SAS Hash Table Operations" by Paul Dorfman and Don Henderson (&lt;A href="https://www.sas.com/store/search.ep?keyWords=HASH&amp;amp;action=Search" target="_blank"&gt;https://www.sas.com/store/search.ep?keyWords=HASH&amp;amp;action=Search&lt;/A&gt;) or read some of the many conference papers about HASH object (&lt;A href="https://lexjansen.com/search/searchresults.php?q=HASH" target="_blank"&gt;https://lexjansen.com/search/searchresults.php?q=HASH&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676694#M204062</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-08-14T11:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: data step to hash table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676695#M204063</link>
      <description>&lt;DIV class="text-wrap tlid-copy-target"&gt;
&lt;DIV class="result-shield-container tlid-copy-target" tabindex="0"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="" title=""&gt;OK thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-to-hash-table/m-p/676695#M204063</guid>
      <dc:creator>makset</dc:creator>
      <dc:date>2020-08-14T11:45:14Z</dc:date>
    </item>
  </channel>
</rss>

