<?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: dynamic variable naming in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405250#M98564</link>
    <description>Thanks. A simple solution that works.</description>
    <pubDate>Wed, 18 Oct 2017 15:20:30 GMT</pubDate>
    <dc:creator>capam</dc:creator>
    <dc:date>2017-10-18T15:20:30Z</dc:date>
    <item>
      <title>dynamic variable naming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405228#M98556</link>
      <description>&lt;P&gt;I wish to&amp;nbsp; dynamically name a variable 'leakersN' in the code below. what is the proper code structure for dynamically naming a variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let RN = 3725;
%put RN = &amp;amp;RN;

data has;
	set has;

	if FAULT_CODE = '20-2018' and VEHICLE_NO = "&amp;amp;RN" then
		leakers'&amp;amp;RN' = count(FAULT_CODE,'20-2018');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405228#M98556</guid>
      <dc:creator>capam</dc:creator>
      <dc:date>2017-10-18T14:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic variable naming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405234#M98559</link>
      <description>Try leakers&amp;amp;RN = count...</description>
      <pubDate>Wed, 18 Oct 2017 14:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405234#M98559</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2017-10-18T14:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic variable naming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405235#M98560</link>
      <description>&lt;P&gt;Could you give a more concrete example?&amp;nbsp; Dataset structure should remain constant - this is how we are able to program on the data.&amp;nbsp; There is some flexibility in terms of arrays of variables, but rarely will you come across a need to have a column&amp;nbsp; dynamic like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405235#M98560</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-18T14:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic variable naming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405250#M98564</link>
      <description>Thanks. A simple solution that works.</description>
      <pubDate>Wed, 18 Oct 2017 15:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405250#M98564</guid>
      <dc:creator>capam</dc:creator>
      <dc:date>2017-10-18T15:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic variable naming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405378#M98614</link>
      <description>&lt;P&gt;Kind of convoluted way to a value of 1 to a variable...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 22:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamic-variable-naming/m-p/405378#M98614</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-18T22:29:31Z</dc:date>
    </item>
  </channel>
</rss>

