<?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: Array processing, getting the variable name from an array element? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-getting-the-variable-name-from-an-array-element/m-p/32126#M6190</link>
    <description>Exactly, thanks</description>
    <pubDate>Mon, 07 Jun 2010 18:44:26 GMT</pubDate>
    <dc:creator>glmsas</dc:creator>
    <dc:date>2010-06-07T18:44:26Z</dc:date>
    <item>
      <title>Array processing, getting the variable name from an array element?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-getting-the-variable-name-from-an-array-element/m-p/32124#M6188</link>
      <description>In Data step processing, is there a way to get the variable name from the array element&lt;BR /&gt;
so like this&lt;BR /&gt;
data t;&lt;BR /&gt;
a=1;&lt;BR /&gt;
b=2;&lt;BR /&gt;
c=3;&lt;BR /&gt;
array cols{*} a--c;&lt;BR /&gt;
do i=1 to dim(cols);&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;if cols(i)&lt;/B&gt; ='&lt;I&gt;a&lt;/I&gt;' then .....&lt;BR /&gt;
end;&lt;BR /&gt;
&lt;BR /&gt;
where you want the var name not the value?&lt;BR /&gt;
thanks&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 07 Jun 2010 13:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-getting-the-variable-name-from-an-array-element/m-p/32124#M6188</guid>
      <dc:creator>glmsas</dc:creator>
      <dc:date>2010-06-07T13:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing, getting the variable name from an array element?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-getting-the-variable-name-from-an-array-element/m-p/32125#M6189</link>
      <description>look at vname and vnamex</description>
      <pubDate>Mon, 07 Jun 2010 13:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-getting-the-variable-name-from-an-array-element/m-p/32125#M6189</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-06-07T13:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Array processing, getting the variable name from an array element?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array-processing-getting-the-variable-name-from-an-array-element/m-p/32126#M6190</link>
      <description>Exactly, thanks</description>
      <pubDate>Mon, 07 Jun 2010 18:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array-processing-getting-the-variable-name-from-an-array-element/m-p/32126#M6190</guid>
      <dc:creator>glmsas</dc:creator>
      <dc:date>2010-06-07T18:44:26Z</dc:date>
    </item>
  </channel>
</rss>

