<?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: Return name of variable at specific position in the array in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Array-Return-name-of-variable-at-specific-position-in-the-array/m-p/813427#M1090</link>
    <description>&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/lefunctionsref/n1cjm0xdeczcd5n1s7d8ah9x8432.htm" target="_self"&gt;vname&lt;/A&gt; function can do this.&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 09:55:31 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2022-05-16T09:55:31Z</dc:date>
    <item>
      <title>Array: Return name of variable at specific position in the array</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Array-Return-name-of-variable-at-specific-position-in-the-array/m-p/813425#M1089</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to do something with SAS but I am not sure how to go about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looping through an array of 3 elements and whenever I have a match, I would like to print the name of the element itself and not the content of the element.&lt;/P&gt;
&lt;P&gt;Is this possible with SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Array CT (3) CT1 CT2 CT3;&lt;/P&gt;
&lt;P&gt;DO i=1 to 3;&lt;BR /&gt;IF CT(i)&amp;nbsp; = 1 THEN DO;&lt;BR /&gt;IF CT = '' THEN CT = CTi;&lt;BR /&gt;ELSE IF CT^= '' THEN CT= strip(CT) || '/' || strip(CTi);&lt;BR /&gt;END;&lt;BR /&gt;END;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 09:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Array-Return-name-of-variable-at-specific-position-in-the-array/m-p/813425#M1089</guid>
      <dc:creator>juju_p</dc:creator>
      <dc:date>2022-05-16T09:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Array: Return name of variable at specific position in the array</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Array-Return-name-of-variable-at-specific-position-in-the-array/m-p/813427#M1090</link>
      <description>&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/lefunctionsref/n1cjm0xdeczcd5n1s7d8ah9x8432.htm" target="_self"&gt;vname&lt;/A&gt; function can do this.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 09:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Array-Return-name-of-variable-at-specific-position-in-the-array/m-p/813427#M1090</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-16T09:55:31Z</dc:date>
    </item>
  </channel>
</rss>

