<?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: use variable with variable value in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2207#M963</link>
    <description>Oliver,&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot! &lt;BR /&gt;
That's exactly what I'm looking for!!</description>
    <pubDate>Mon, 05 Feb 2007 10:14:44 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-02-05T10:14:44Z</dc:date>
    <item>
      <title>use variable with variable value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2203#M959</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I've got a dataset with variables var1 to var4.&lt;BR /&gt;
And I want do normalize them.&lt;BR /&gt;
&lt;BR /&gt;
I've tried this code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
  set tst;&lt;BR /&gt;
&lt;BR /&gt;
  do i=1 to 4;&lt;BR /&gt;
    output_var1 = var+i;&lt;BR /&gt;
    output;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But it doesn't work...&lt;BR /&gt;
Can anyone help me?</description>
      <pubDate>Fri, 02 Feb 2007 08:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2203#M959</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-02-02T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: use variable with variable value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2204#M960</link>
      <description>What do you exactly mean by "normalizing" ? Can we have a sample with data of what you have as an input, and what you want to create ?</description>
      <pubDate>Mon, 05 Feb 2007 07:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2204#M960</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-02-05T07:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: use variable with variable value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2205#M961</link>
      <description>Source:&lt;BR /&gt;
var1    var2   var3&lt;BR /&gt;
one     1      11&lt;BR /&gt;
two     2      12&lt;BR /&gt;
three   3      13&lt;BR /&gt;
&lt;BR /&gt;
The output should be:&lt;BR /&gt;
var1  var&lt;BR /&gt;
one   1&lt;BR /&gt;
one   11&lt;BR /&gt;
two   2&lt;BR /&gt;
two   12&lt;BR /&gt;
three 3&lt;BR /&gt;
three 13</description>
      <pubDate>Mon, 05 Feb 2007 09:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2205#M961</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-02-05T09:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: use variable with variable value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2206#M962</link>
      <description>DATA newlyCreated ;&lt;BR /&gt;
   SET existing ;&lt;BR /&gt;
   ARRAY values &lt;BR /&gt;
        var2 var3 /* here you can list all the variables that contain values */ ;&lt;BR /&gt;
   DO OVER values ;&lt;BR /&gt;
      var = values ;&lt;BR /&gt;
      OUTPUT ;&lt;BR /&gt;
   END ;&lt;BR /&gt;
RUN ;</description>
      <pubDate>Mon, 05 Feb 2007 10:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2206#M962</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-02-05T10:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: use variable with variable value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2207#M963</link>
      <description>Oliver,&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot! &lt;BR /&gt;
That's exactly what I'm looking for!!</description>
      <pubDate>Mon, 05 Feb 2007 10:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/use-variable-with-variable-value/m-p/2207#M963</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-02-05T10:14:44Z</dc:date>
    </item>
  </channel>
</rss>

