<?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: Refer to a Macro variable with a combination of Macro variable and dataset variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761654#M241045</link>
    <description>&lt;P&gt;To retrieve the value of a macro variable during data step execution, you need to use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/lefunctionsref/n08h8unph3lz0un1ap3kqru4iym0.htm" target="_blank" rel="noopener"&gt;SYMGET Function&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Aug 2021 08:53:08 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-08-15T08:53:08Z</dc:date>
    <item>
      <title>Refer to a Macro variable with a combination of Macro variable and dataset variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761651#M241044</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a macro variable test123=combination&lt;/P&gt;&lt;P&gt;In the data step I need to resolve this macro variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;%let test123=combination;&lt;/P&gt;&lt;P&gt;data mac;&lt;/P&gt;&lt;P&gt;macval=123;&lt;/P&gt;&lt;P&gt;combval=?&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the value of&amp;nbsp;combval=combination.&lt;/P&gt;&lt;P&gt;something like combval=&amp;amp;&amp;amp;test.(macval) where macval is referred for the suffix&lt;/P&gt;&lt;P&gt;is there a way without intermediate conversion of macval to macro variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mushy&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 06:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761651#M241044</guid>
      <dc:creator>Mushy</dc:creator>
      <dc:date>2021-08-15T06:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Macro variable with a combination of Macro variable and dataset variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761654#M241045</link>
      <description>&lt;P&gt;To retrieve the value of a macro variable during data step execution, you need to use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/lefunctionsref/n08h8unph3lz0un1ap3kqru4iym0.htm" target="_blank" rel="noopener"&gt;SYMGET Function&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 08:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761654#M241045</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-15T08:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Macro variable with a combination of Macro variable and dataset variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761655#M241046</link>
      <description>&lt;P&gt;The statement would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;combval = symget(cats('test',macval));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Aug 2021 08:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761655#M241046</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-15T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Macro variable with a combination of Macro variable and dataset variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761656#M241047</link>
      <description>Thanks Kurt</description>
      <pubDate>Sun, 15 Aug 2021 09:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Refer-to-a-Macro-variable-with-a-combination-of-Macro-variable/m-p/761656#M241047</guid>
      <dc:creator>Mushy</dc:creator>
      <dc:date>2021-08-15T09:01:46Z</dc:date>
    </item>
  </channel>
</rss>

