<?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 an array while comparing data sets? #Advanced SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83432#M18002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your issue is extremely simple even though it took me like an hour to mumble and finally figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll drive your attention to one particular event for all of the working matches: VIKING is the last word in keyword3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS does not trim/compress strings unless specified otherwise. So what happens is, kindex function attempts to match "VIKING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can simply modify&lt;/P&gt;&lt;P&gt;bb = kindex(Keyword3,&lt;STRONG&gt;trim(target_brand{i})&lt;/STRONG&gt;);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a sidenote, you could also write, for readability,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i = 1 to 135 until (coalesce(bb, 0) NE 0);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;bb = kindex(Keyword3,target_brand{i});&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coalesce is just to handle when bb is missing at the beginning of each new loop. It has the same logic as (bb NE 0 and bb NE .). Not sure what's most efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 16:14:18 GMT</pubDate>
    <dc:creator>Vince28_Statcan</dc:creator>
    <dc:date>2013-09-16T16:14:18Z</dc:date>
    <item>
      <title>How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83427#M17997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been facing a problem where I am trying to compare two datasets by passing array values for comparison to other data set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that is giving me trouble is written below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data web.new;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array target_brand{135} $ 30 _temporary_;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*****Defining an array target_brand*************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF _N_ = 1 then do i = 1 to 135;&lt;/P&gt;&lt;P&gt;set brands;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; target_brand{i} = brand_names1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*****Inserting values to array***********************/&lt;/P&gt;&lt;P&gt;put target_brand{i};&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set web.home2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*****Calling second data set where I have to compare array values************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i = 1 to 135;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bb = kindex(Keyword3,target_brand{i});&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if bb ne 0 then do;&lt;/P&gt;&lt;P&gt;put i target_brand{i};&lt;/P&gt;&lt;P&gt;i = 140;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html file = "test.xls";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*****Printing the output**********************/&lt;/P&gt;&lt;P&gt;proc print data = web.new;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The image of the part of the output which is not giving me desired results is given below:&lt;/P&gt;&lt;P&gt;As you can see VIKING is present in the sec observation as well but the code is unable to capture it. Also my observation is that it captures only the last word in the Keyword3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Untitled.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4174_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 03:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83427#M17997</guid>
      <dc:creator>hsharmas</dc:creator>
      <dc:date>2013-09-16T03:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83428#M17998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide some example data for this scenario?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 05:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83428#M17998</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-09-16T05:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83429#M17999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya sure Scott. PFA a sample csv files. home2.csv has 10 odd observation and one variable Keyword3 and brands.csv has two observations and one variable brand_names.&amp;nbsp; You have to adjust the "i" value in the loop according to the number of observation. Please let me know if you have any queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 15:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83429#M17999</guid>
      <dc:creator>hsharmas</dc:creator>
      <dc:date>2013-09-16T15:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83430#M18000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post what your initial problem is? &lt;BR /&gt;Are you trying to identify words from one file in another for example?&amp;nbsp; Sample data is useful, in the post, actual example data, rather than a description of files. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 15:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83430#M18000</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-09-16T15:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83431#M18001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Reeza, I am trying to find whether the word in the array is present in keyword3 (in another data set). If that is present then return me the position value. If the position returned is non zero then it comes out of the loop and reads next observation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 15:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83431#M18001</guid>
      <dc:creator>hsharmas</dc:creator>
      <dc:date>2013-09-16T15:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83432#M18002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your issue is extremely simple even though it took me like an hour to mumble and finally figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll drive your attention to one particular event for all of the working matches: VIKING is the last word in keyword3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS does not trim/compress strings unless specified otherwise. So what happens is, kindex function attempts to match "VIKING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can simply modify&lt;/P&gt;&lt;P&gt;bb = kindex(Keyword3,&lt;STRONG&gt;trim(target_brand{i})&lt;/STRONG&gt;);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a sidenote, you could also write, for readability,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i = 1 to 135 until (coalesce(bb, 0) NE 0);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;bb = kindex(Keyword3,target_brand{i});&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coalesce is just to handle when bb is missing at the beginning of each new loop. It has the same logic as (bb NE 0 and bb NE .). Not sure what's most efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83432#M18002</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-09-16T16:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83433#M18003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You data goes down (ie 1 variable) and in SAS an array goes across multiple columns, or a single row. I don't think this is the proper use of an array. &lt;/P&gt;&lt;P&gt;You could probably make it work, but it seems very inefficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select name into :list_names separated by '", "'&lt;/P&gt;&lt;P&gt;from sashelp.class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where age=13;&lt;/P&gt;&lt;P&gt;select count(*) into :obs_count from sashelp.class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where age=13;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put "&amp;amp;list_names";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data find_words;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array search_words(&amp;amp;obs_count) $ _temporary_ ("&amp;amp;list_names");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do i =1 to dim(search_words);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if index( name, search_words(i))&amp;gt;0 then match=search_words(i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83433#M18003</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-09-16T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83434#M18004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I believe that it is the most efficient method of lookup, but is quite memory intensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the attached for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi26/p008-26.pdf" title="http://www2.sas.com/proceedings/sugi26/p008-26.pdf"&gt;http://www2.sas.com/proceedings/sugi26/p008-26.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83434#M18004</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-09-16T16:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83435#M18005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza, _TEMPORARY_ array do not reference particular columns. They're a mean to store values in memory with no special indexing (like that of hash tables) to search them. Arrays that are not temporary and are specified with variable ranges or name list are not temporary and act basically as an addition to the data vector. Oddly enough array _temporary_ don't get their values reinitiated to missing at each data loop. They remain in memory as hash objects until the end of the data step. That is, they are not really temporary to the iterations of the data step (but they are temporary to the output dataset as they are not automatically output since they are not tied to any data vector variables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above syntax for array _temporary_ is definitely right. I use temporary arrays as small dictionaries all the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to the OP, there was a thread about 2 months back that depicted a different approach. That of reading your keyword3, word by word and then doing a match lookup to a hash table acting as a dictionary (likely more efficient than kindex or find functions). I'll try to find the thread back in my activity and link it if you want. But the TRIM() I mentionned above should make your current code work as intended&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83435#M18005</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-09-16T16:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83436#M18006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott, I SUGI 26 was in 2000 or 2001? That was before SAS developpers implemented hash objects. This paper essentially describes the hard coded version of hash hash objects back when you couldn't use the object already. The underlying concept of the hash object is that it builds a unique fast searchable key tied to a pointer on the data for that unique key. The object does the binary hashing discussed in the paper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this stage in computer technology evolution though, looping over 150 array cells versus performing a hash lookup on&amp;nbsp; a hash object with 150 cells is marginally better. He would need to tens of millions of keyword3 to notice any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nonetheless, a hash table approach to a similar problem has been posted elsewhere on these forums recently&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83436#M18006</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-09-16T16:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83437#M18007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned above, here's a thread with some stress testing with examples using hash tables to achieve your desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/thread/46818"&gt;https://communities.sas.com/thread/46818&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again though, with marginally small dictionary of good words, you won't see any difference with your current _temporary_ array approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83437#M18007</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-09-16T16:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83438#M18008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vince, I have read numerous articles that compare the key index method against hashes and the key index method still out performed the hash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83438#M18008</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-09-16T16:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83439#M18009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hsharmas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While it wouldn't hurt to check the values stored in BRAND_NAME1, I'm going to assume that those are correct.&amp;nbsp; Most likely, the problem lies with your use of KINDEX (same would apply to the INDEX function).&amp;nbsp; The second parameter, the string to search for, should be modified:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strip(target_brand{i})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it stands now, the string being searched for is 30 characters long:&amp;nbsp; "VIKING" plus 24 additional blanks.&amp;nbsp; The STRIP function will remove leading and trailing blanks, and let you search for just the six characters "VIKING".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, Vince.&amp;nbsp; I was lazy and didn't read all the previous answers as carefully as I should have&amp;nbsp; You had already mentioned TRIM, which should work just as well as STRIP in this case.&amp;nbsp; At any rate, I had posted a bit of explanation as to why it's needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83439#M18009</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-09-16T17:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83440#M18010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guess I'll give it a fully detailed read then. It really just read to me like a hard coded hash. I don't think the gain would be worth the programming trouble for the projects I've been working on but I'm always interested in understanding that kind of stuff. Especially if it's transferable to other programming languages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info. If you have any such recent paper comparing hash and index method, feel free to post the link back here &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83440#M18010</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-09-16T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83441#M18011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My knowledge is based on reading articles, having not benchmarked the two approaches myself.&amp;nbsp; The attached article from 2007 simply states that temporary arrays are the fastest lookup method, without any data to back it up, but I have read several suggesting the same. &lt;A href="http://www.nesug.info/Proceedings/nesug07/bb/bb16.pdf"&gt;http://www.nesug.info/Proceedings/nesug07/bb/bb16.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only new to hash objects, so have spent the last wekk or so playing around with them.&amp;nbsp; I am fine with simple lookups and the like, but there is so much more to them than just that and the individual methods are doing my head in.&amp;nbsp; I do enjoy a challenge though, so hopefully will have them licked shortly and then can begin benchmarking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83441#M18011</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-09-16T17:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83442#M18012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're correct. Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OP's code works in 0.01 seconds versus over 0.71 secs for my process.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83442#M18012</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-09-16T17:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83443#M18013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott, Vince, Reeza&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info. I just wonder including the TRIM function in the index function makes such a difference when I already had a variable using STRIP func including in the array. Anyways can anybody tell me about if you have a case of :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keyword: RANERIS ERIS and Lookupvalue: ERIS &lt;/P&gt;&lt;P&gt;I want the function to return me back the second ERIS word. I though adding the space in the starting of the word will help but SAS does not take care of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused how to do it where I get the position of the exact word and not the word that is part of other word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 18:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83443#M18013</guid>
      <dc:creator>hsharmas</dc:creator>
      <dc:date>2013-09-16T18:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83444#M18014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hsharmas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason you need trim again in the kindex function is because when you stripped blanks when you created your array, SAS still naturally blank-padded the resulting stripped value to "fill" the length $30. of each array bucket. So when you use array index, it still returns a 30 length string with zero padding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the RANERIS vs ERIS issue. If you ought to stick to the array method, you will want to use findw() function instead of kindex which has natural handling of words. The backdraw is if you have dictionary entries that are like "Mega Corp" because then it can't ever match any single word delimited by findw().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, you can use the scan()/hash lookup method discussed in the other similar thread I linked on these forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multi word dictionary entries like the mega corp above, you would probably need to use PERL to indicate that you must have a nonletter preceeding and following the match. Since PERL syntax is not trivial and you may very well not need it, I'll leave it to you to see if findw() function is sufficient for your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are probably plenty of other ways like conditioning on a blank space at substr(keyword3, bb-1, 1)=" " but the issue with this is that you then need to consider for if the match is the first word of the string for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 19:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83444#M18014</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-09-16T19:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83445#M18015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the standard techniques for dealing with the RANERIS vs. ERIS situation is to pad both parameters with a leading and trailing blank.&amp;nbsp; It becomes mildly clumsy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bb = kindex(" " || keyword3 || " ", " " || trim(target_brand{i}) || " ");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 19:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83445#M18015</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-09-16T19:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use an array while comparing data sets? #Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83446#M18016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Astounding:&amp;nbsp; Thanks a lot ,If that works for me. I will let you know in 15 mins from now!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 20:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-an-array-while-comparing-data-sets-Advanced-SAS/m-p/83446#M18016</guid>
      <dc:creator>hsharmas</dc:creator>
      <dc:date>2013-09-16T20:12:49Z</dc:date>
    </item>
  </channel>
</rss>

