<?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: Lookup a reference dataset for value in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Lookup-a-reference-dataset-for-value/m-p/21696#M4635</link>
    <description>Some choices are (and consider that it depends based on data-volume and look-up return value content):&lt;BR /&gt;
&lt;BR /&gt;
- use SAS PROC FORMAT to build your look-up table and then use the SAS DATA step PUT function to find a match.&lt;BR /&gt;
- use SAS DATA step MERGE processing to attempt to match your two files.&lt;BR /&gt;
- use SAS DATA step SET with KEY= processing to perform a look-up.&lt;BR /&gt;
- a more recent feature is to consider using SAS DATA step and the HASH table approach to perform your objective.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website (with its SEARCH facility) has a wealth reference of SAS-hosted documentation and supplemental technical and conference papers based on topic-oriented subjects.&lt;BR /&gt;
&lt;BR /&gt;
Proc Format, a Speedy Alternative to Sort Sort Merge&lt;BR /&gt;
Jenine Milum, Wachovia a Wells Fargo Company, Charlotte, NC&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/064-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/064-2009.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
A Hands-On Introduction to SAS® DATA Step Programming&lt;BR /&gt;
Debbie Buck, D. B. &amp;amp; P. Associates, Houston, TX&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/134-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/134-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Getting Started with the DATA Step Hash Object&lt;BR /&gt;
Jason Secosky, SAS Institute Inc., Cary, NC&lt;BR /&gt;
Janice Bloom, SAS Institute Inc., Cary, NC&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/datastep/dot/hash-getting-started.pdf" target="_blank"&gt;http://support.sas.com/rnd/base/datastep/dot/hash-getting-started.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And more recently from the SGF 2009 confererence:&lt;BR /&gt;
&lt;BR /&gt;
Scalability of Table Lookup Techniques&lt;BR /&gt;
Rick Langston, SAS Institute Inc., Cary, NC&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/037-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/037-2009.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Tue, 21 Apr 2009 21:40:05 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-04-21T21:40:05Z</dc:date>
    <item>
      <title>Lookup a reference dataset for value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Lookup-a-reference-dataset-for-value/m-p/21695#M4634</link>
      <description>Hi Everyone,&lt;BR /&gt;
&lt;BR /&gt;
I have 2 sas datasets &lt;BR /&gt;
Dataset A &lt;BR /&gt;
&lt;B&gt;dateKey&lt;/B&gt;     &lt;B&gt;dateValue&lt;/B&gt;&lt;BR /&gt;
1012          10/10/2005&lt;BR /&gt;
1013           05/26/1960&lt;BR /&gt;
&lt;BR /&gt;
Dataset B&lt;BR /&gt;
&lt;B&gt;start_date_key&lt;/B&gt;                       &lt;B&gt;  xyz  &lt;/B&gt;        &lt;B&gt;abc .....&lt;/B&gt;&lt;BR /&gt;
1012                                       asdfsfsd    sdr4wrwer&lt;BR /&gt;
1013                                       sdfrgfgfd     dfgfdgdfgdfg&lt;BR /&gt;
&lt;BR /&gt;
How do I specify in sas to lookup DatasetA's &lt;B&gt;dateKey&lt;/B&gt; with Dataset B's &lt;B&gt;start_date_key&lt;/B&gt; and retrieve value with least performance impact&lt;BR /&gt;
&lt;BR /&gt;
Any help in this regard is appreciated&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Kumar.</description>
      <pubDate>Tue, 21 Apr 2009 20:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-a-reference-dataset-for-value/m-p/21695#M4634</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-21T20:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup a reference dataset for value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Lookup-a-reference-dataset-for-value/m-p/21696#M4635</link>
      <description>Some choices are (and consider that it depends based on data-volume and look-up return value content):&lt;BR /&gt;
&lt;BR /&gt;
- use SAS PROC FORMAT to build your look-up table and then use the SAS DATA step PUT function to find a match.&lt;BR /&gt;
- use SAS DATA step MERGE processing to attempt to match your two files.&lt;BR /&gt;
- use SAS DATA step SET with KEY= processing to perform a look-up.&lt;BR /&gt;
- a more recent feature is to consider using SAS DATA step and the HASH table approach to perform your objective.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website (with its SEARCH facility) has a wealth reference of SAS-hosted documentation and supplemental technical and conference papers based on topic-oriented subjects.&lt;BR /&gt;
&lt;BR /&gt;
Proc Format, a Speedy Alternative to Sort Sort Merge&lt;BR /&gt;
Jenine Milum, Wachovia a Wells Fargo Company, Charlotte, NC&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/064-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/064-2009.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
A Hands-On Introduction to SAS® DATA Step Programming&lt;BR /&gt;
Debbie Buck, D. B. &amp;amp; P. Associates, Houston, TX&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/134-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/134-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Getting Started with the DATA Step Hash Object&lt;BR /&gt;
Jason Secosky, SAS Institute Inc., Cary, NC&lt;BR /&gt;
Janice Bloom, SAS Institute Inc., Cary, NC&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/datastep/dot/hash-getting-started.pdf" target="_blank"&gt;http://support.sas.com/rnd/base/datastep/dot/hash-getting-started.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And more recently from the SGF 2009 confererence:&lt;BR /&gt;
&lt;BR /&gt;
Scalability of Table Lookup Techniques&lt;BR /&gt;
Rick Langston, SAS Institute Inc., Cary, NC&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/037-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/037-2009.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 21 Apr 2009 21:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-a-reference-dataset-for-value/m-p/21696#M4635</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-21T21:40:05Z</dc:date>
    </item>
  </channel>
</rss>

