<?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: Macro variable and DATA step in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32607#M7879</link>
    <description>While it actually is technically possible to create and then use a macro variable within the same DATA step, it is rarely the right solution.  We would need to see more of the problem to address the design issues.</description>
    <pubDate>Tue, 08 Jun 2010 17:10:55 GMT</pubDate>
    <dc:creator>ArtC</dc:creator>
    <dc:date>2010-06-08T17:10:55Z</dc:date>
    <item>
      <title>Macro variable and DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32603#M7875</link>
      <description>Hi All.&lt;BR /&gt;
&lt;BR /&gt;
I am trying to introduce a new macro variable in a data step and use that variable with in the same data step,is that possible?&lt;BR /&gt;
I know that CALL SYMPUT will not work to acheive what I am trying to do.&lt;BR /&gt;
If you have any suggestions,please let me know.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Tue, 08 Jun 2010 05:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32603#M7875</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-06-08T05:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable and DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32604#M7876</link>
      <description>No. you cant create and use a macro variable with in the same data step.</description>
      <pubDate>Tue, 08 Jun 2010 07:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32604#M7876</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2010-06-08T07:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable and DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32605#M7877</link>
      <description>The SYMPUT routine assigns the value of the macro variable during DATA step execution, but the macro variable references resolve during the compilation of a step or global statement. So you can’t retrieve the macro variable’s value in the same DATA step in which the SYMPUT routine assigns that value.</description>
      <pubDate>Tue, 08 Jun 2010 07:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32605#M7877</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2010-06-08T07:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable and DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32606#M7878</link>
      <description>Instead of a macro variable you could use a retain statement to keep a value of a variable across iterations of the data step.</description>
      <pubDate>Tue, 08 Jun 2010 13:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32606#M7878</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-06-08T13:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable and DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32607#M7879</link>
      <description>While it actually is technically possible to create and then use a macro variable within the same DATA step, it is rarely the right solution.  We would need to see more of the problem to address the design issues.</description>
      <pubDate>Tue, 08 Jun 2010 17:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-variable-and-DATA-step/m-p/32607#M7879</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-06-08T17:10:55Z</dc:date>
    </item>
  </channel>
</rss>

