<?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 of VAR1 to ID which of VAR2-VARn to use in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Value-of-VAR1-to-ID-which-of-VAR2-VARn-to-use/m-p/71538#M15486</link>
    <description>Look at using the VVALUEX function in a DATA step.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Tue, 15 Sep 2009 16:30:49 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-09-15T16:30:49Z</dc:date>
    <item>
      <title>Value of VAR1 to ID which of VAR2-VARn to use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Value-of-VAR1-to-ID-which-of-VAR2-VARn-to-use/m-p/71537#M15485</link>
      <description>VAR1 contains the name of a second variable that I would like to choose for further processing. The value of VAR1 could be VAR2, VAR3, VAR4, VARn etc. I would like to create a new variable, NEW1, that would take the value of either VAR2, VAR3, VAR4, VARn etc. depending on the value of VAR1. Also, the # of possibilities, "n", could be different at different points in time and I would like the code to check for that. &lt;BR /&gt;
&lt;BR /&gt;
Is there a simple way to do this without writing a very large if-then-do piece of code that will list each VAR2-VARn individually?</description>
      <pubDate>Tue, 15 Sep 2009 16:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Value-of-VAR1-to-ID-which-of-VAR2-VARn-to-use/m-p/71537#M15485</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-15T16:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Value of VAR1 to ID which of VAR2-VARn to use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Value-of-VAR1-to-ID-which-of-VAR2-VARn-to-use/m-p/71538#M15486</link>
      <description>Look at using the VVALUEX function in a DATA step.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 15 Sep 2009 16:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Value-of-VAR1-to-ID-which-of-VAR2-VARn-to-use/m-p/71538#M15486</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-15T16:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Value of VAR1 to ID which of VAR2-VARn to use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Value-of-VAR1-to-ID-which-of-VAR2-VARn-to-use/m-p/71539#M15487</link>
      <description>That did the trick, I hadn't heard of that function before. Thanks.</description>
      <pubDate>Tue, 15 Sep 2009 17:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Value-of-VAR1-to-ID-which-of-VAR2-VARn-to-use/m-p/71539#M15487</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-15T17:22:59Z</dc:date>
    </item>
  </channel>
</rss>

