<?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: How to use a created Index correctly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-created-Index-correctly/m-p/352894#M82329</link>
    <description>&lt;P&gt;Were you able to successfully join the datasets without the index? &amp;nbsp;Is it just that you have been successful at joining the datasets but would like to speed up the process, or that you have not joined them yet and will do so using index?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may be expedient and clearer for you to split the combined first/last name cell in match.name into separate cells. Then, create your index on the first/last name columns.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 15:00:49 GMT</pubDate>
    <dc:creator>thomp7050</dc:creator>
    <dc:date>2017-04-24T15:00:49Z</dc:date>
    <item>
      <title>How to use a created Index correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-created-Index-correctly/m-p/352837#M82303</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know why my created index is not matching against entries, and how to do it correctly i guess:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example below should match the Match this Value from the MATCH Dataset, but it comes back with a blank value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DAN.test_data1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; first &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$char80.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; second &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$char80.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;MATCH&lt;/P&gt;&lt;P&gt;THIS&lt;/P&gt;&lt;P&gt;NOT&lt;/P&gt;&lt;P&gt;THIS&lt;/P&gt;&lt;P&gt;MATCH&lt;/P&gt;&lt;P&gt;THIS&lt;/P&gt;&lt;P&gt;NOT&lt;/P&gt;&lt;P&gt;THIS&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; match;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$char80.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;MATCH THIS&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;datasets&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;library&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=dan ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;modify&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test_data1 ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;index&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; match_name=(first second); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; INDEX_MATCH;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; match;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dan.test_data1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;KEY&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=match_name / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;UNIQUE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the reall world i have 1000 names that i would like to match against a dataset of 1 million rows , creating an index on first and second name - but my results are coming back blank, using effectively&amp;nbsp;the same logic as above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreicated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mr E&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-created-Index-correctly/m-p/352837#M82303</guid>
      <dc:creator>MR_E</dc:creator>
      <dc:date>2017-04-24T13:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a created Index correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-created-Index-correctly/m-p/352894#M82329</link>
      <description>&lt;P&gt;Were you able to successfully join the datasets without the index? &amp;nbsp;Is it just that you have been successful at joining the datasets but would like to speed up the process, or that you have not joined them yet and will do so using index?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may be expedient and clearer for you to split the combined first/last name cell in match.name into separate cells. Then, create your index on the first/last name columns.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-a-created-Index-correctly/m-p/352894#M82329</guid>
      <dc:creator>thomp7050</dc:creator>
      <dc:date>2017-04-24T15:00:49Z</dc:date>
    </item>
  </channel>
</rss>

