<?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 How  to add conditional statements using hash object in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-conditional-statements-using-hash-object/m-p/75483#M21903</link>
    <description>Hi,&lt;BR /&gt;
I have big datasets to merge , so thought of using  hash object for this .Can anyone tell me, how to include the conditional statements in this? My code using merge looks as below&lt;BR /&gt;
&lt;BR /&gt;
data merged;&lt;BR /&gt;
merge p(in=a) q(in=b) r(in=c) r(in=d);&lt;BR /&gt;
by var1;&lt;BR /&gt;
if a and b then flag_p=1;else flag_p=0;&lt;BR /&gt;
if a and c then flag_p=1;else flag_q=0;&lt;BR /&gt;
if a and d then flag_p=1;else flag_r=0;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Your help w'd be highly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
SL</description>
    <pubDate>Wed, 25 Feb 2009 14:30:12 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-02-25T14:30:12Z</dc:date>
    <item>
      <title>How  to add conditional statements using hash object</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-conditional-statements-using-hash-object/m-p/75483#M21903</link>
      <description>Hi,&lt;BR /&gt;
I have big datasets to merge , so thought of using  hash object for this .Can anyone tell me, how to include the conditional statements in this? My code using merge looks as below&lt;BR /&gt;
&lt;BR /&gt;
data merged;&lt;BR /&gt;
merge p(in=a) q(in=b) r(in=c) r(in=d);&lt;BR /&gt;
by var1;&lt;BR /&gt;
if a and b then flag_p=1;else flag_p=0;&lt;BR /&gt;
if a and c then flag_p=1;else flag_q=0;&lt;BR /&gt;
if a and d then flag_p=1;else flag_r=0;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Your help w'd be highly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
SL</description>
      <pubDate>Wed, 25 Feb 2009 14:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-conditional-statements-using-hash-object/m-p/75483#M21903</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-25T14:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: How  to add conditional statements using hash object</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-conditional-statements-using-hash-object/m-p/75484#M21904</link>
      <description>What aspect of the hash object feature do you feel would be better than a DATA step MERGE process, as shown below?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 25 Feb 2009 23:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-conditional-statements-using-hash-object/m-p/75484#M21904</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-25T23:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How  to add conditional statements using hash object</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-conditional-statements-using-hash-object/m-p/75485#M21905</link>
      <description>Scott,&lt;BR /&gt;
&lt;BR /&gt;
I am working with the datasets of 12,19 and 33 GB sized files which are to be sorted before merging and that results in lot of time consumption, which w'd be greatly reduced using hash objects.However I figured out to do what I wanted. I you want to know more about hash objects features, then google it ,its really efficient while dealing with big datasets.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for showing interest,&lt;BR /&gt;
SL</description>
      <pubDate>Fri, 27 Feb 2009 11:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-conditional-statements-using-hash-object/m-p/75485#M21905</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-27T11:21:28Z</dc:date>
    </item>
  </channel>
</rss>

