<?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 Macro reference in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-reference/m-p/52719#M11144</link>
    <description>Hi  &lt;BR /&gt;
&lt;BR /&gt;
I've a macro variable created with&lt;BR /&gt;
&lt;BR /&gt;
%let valqtr = 08q2;&lt;BR /&gt;
&lt;BR /&gt;
I want to create a straight up variable referencing the macro value&lt;BR /&gt;
&lt;BR /&gt;
example:&lt;BR /&gt;
&lt;BR /&gt;
pstqtr = "&amp;amp;valqtr";&lt;BR /&gt;
&lt;BR /&gt;
The result i intend to get is&lt;BR /&gt;
&lt;BR /&gt;
pstqtr = 08q2&lt;BR /&gt;
&lt;BR /&gt;
Please tell me how i can do that</description>
    <pubDate>Wed, 08 Oct 2008 17:42:08 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-08T17:42:08Z</dc:date>
    <item>
      <title>Macro reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-reference/m-p/52719#M11144</link>
      <description>Hi  &lt;BR /&gt;
&lt;BR /&gt;
I've a macro variable created with&lt;BR /&gt;
&lt;BR /&gt;
%let valqtr = 08q2;&lt;BR /&gt;
&lt;BR /&gt;
I want to create a straight up variable referencing the macro value&lt;BR /&gt;
&lt;BR /&gt;
example:&lt;BR /&gt;
&lt;BR /&gt;
pstqtr = "&amp;amp;valqtr";&lt;BR /&gt;
&lt;BR /&gt;
The result i intend to get is&lt;BR /&gt;
&lt;BR /&gt;
pstqtr = 08q2&lt;BR /&gt;
&lt;BR /&gt;
Please tell me how i can do that</description>
      <pubDate>Wed, 08 Oct 2008 17:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-reference/m-p/52719#M11144</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-08T17:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-reference/m-p/52720#M11145</link>
      <description>it would have been helpful to know what you have tried....&lt;BR /&gt;
In what context do you want to use this macro variable? &lt;BR /&gt;
Would it be in a where clause, logic test, assignment statement, E.G., WRS, ....?&lt;BR /&gt;
&lt;BR /&gt;
Have you tried&lt;BR /&gt;
  pstqtr =  "&amp;amp;valqtr" ;&lt;BR /&gt;
&lt;BR /&gt;
 or &lt;BR /&gt;
  &lt;BR /&gt;
pstqtr = "%sysfunc( inputn(&amp;amp;valqtr, yyq4))";</description>
      <pubDate>Wed, 08 Oct 2008 18:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-reference/m-p/52720#M11145</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2008-10-08T18:18:49Z</dc:date>
    </item>
  </channel>
</rss>

