<?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: Value lookup while reading in CSV in data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Value-lookup-while-reading-in-CSV-in-data-step/m-p/297613#M62529</link>
    <description>&lt;P&gt;Have a look at this paper&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings15/2219-2015.pdf" target="_blank"&gt;Table Lookup Techniques : From the Basics to the Innovative&lt;/A&gt; by Art Carpenter it gives a good overview of different techniques. The type of method to choose is also dependant on the amount of data. Have a look at the first example using a hash object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Sun, 11 Sep 2016 19:31:50 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2016-09-11T19:31:50Z</dc:date>
    <item>
      <title>Value lookup while reading in CSV in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Value-lookup-while-reading-in-CSV-in-data-step/m-p/297602#M62526</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible while reading in some CSVs in a data step with infile, to perform also some kind of lookup mapping against some other tables which were already previously created to calculate some aditional columns on the fly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, let's assume I read in a CSV which contains two columns, entity and currency. I need to calculate a 3rd column, reporting_currency which is obtained by looking up the entity-currency tuple in another table I already have imported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 14:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Value-lookup-while-reading-in-CSV-in-data-step/m-p/297602#M62526</guid>
      <dc:creator>_SAS_</dc:creator>
      <dc:date>2016-09-11T14:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Value lookup while reading in CSV in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Value-lookup-while-reading-in-CSV-in-data-step/m-p/297607#M62527</link>
      <description>&lt;P&gt;You can use PROC FORMAT to create a format from the lookup table.&lt;/P&gt;&lt;P&gt;Then you can add lines like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; new_var = put(old_var, format_name.);&lt;/P&gt;&lt;P&gt;where format_name is the name you gave in 1st step.&lt;/P&gt;&lt;P&gt;Pay attention to the dot at end of format name.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 15:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Value-lookup-while-reading-in-CSV-in-data-step/m-p/297607#M62527</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-09-11T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Value lookup while reading in CSV in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Value-lookup-while-reading-in-CSV-in-data-step/m-p/297613#M62529</link>
      <description>&lt;P&gt;Have a look at this paper&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings15/2219-2015.pdf" target="_blank"&gt;Table Lookup Techniques : From the Basics to the Innovative&lt;/A&gt; by Art Carpenter it gives a good overview of different techniques. The type of method to choose is also dependant on the amount of data. Have a look at the first example using a hash object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 19:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Value-lookup-while-reading-in-CSV-in-data-step/m-p/297613#M62529</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-09-11T19:31:50Z</dc:date>
    </item>
  </channel>
</rss>

