<?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: %global-statement wirth dynamic varaible-names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21586#M3481</link>
    <description>I wrote a macro including a data-step which creates a lot of macro-variables with call symput function.&lt;BR /&gt;
Later i need that macro-variables in another macro; but they are not available (local in the other macro).</description>
    <pubDate>Thu, 29 May 2008 09:26:32 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-05-29T09:26:32Z</dc:date>
    <item>
      <title>%global-statement wirth dynamic varaible-names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21584#M3479</link>
      <description>Hi. Is there any way to declare global macro-variables with dynamic varaible-names?&lt;BR /&gt;
Or rather; i tried to write a %global statement like&lt;BR /&gt;
&lt;BR /&gt;
%global &amp;amp;mvar&lt;BR /&gt;
&lt;BR /&gt;
in a do-loop. The macro-variable mvar contains the actual variable-name for the global statement; but i woudln't be solved.&lt;BR /&gt;
If i write %global "&amp;amp;mvar" it would be solved as %global "mvarcontent", but %global didn't work with qutotet variable-names.

Message was edited by: idefix</description>
      <pubDate>Thu, 29 May 2008 07:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21584#M3479</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-29T07:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: %global-statement wirth dynamic varaible-names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21585#M3480</link>
      <description>why bother?</description>
      <pubDate>Thu, 29 May 2008 08:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21585#M3480</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-29T08:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: %global-statement wirth dynamic varaible-names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21586#M3481</link>
      <description>I wrote a macro including a data-step which creates a lot of macro-variables with call symput function.&lt;BR /&gt;
Later i need that macro-variables in another macro; but they are not available (local in the other macro).</description>
      <pubDate>Thu, 29 May 2008 09:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21586#M3481</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-29T09:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: %global-statement wirth dynamic varaible-names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21587#M3482</link>
      <description>then use CALL SYMPUTX() with the G parameter&lt;BR /&gt;
&lt;BR /&gt;
or create them local to the environment under which they are filled and used

alternatives to Global macro variables exist&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: Peter_c</description>
      <pubDate>Thu, 29 May 2008 10:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21587#M3482</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-29T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: %global-statement wirth dynamic varaible-names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21588#M3483</link>
      <description>SYMPUTX with the G parameter also creates non global variables within a macro.&lt;BR /&gt;
&lt;BR /&gt;
But ... it think they are not really local.&lt;BR /&gt;
&lt;BR /&gt;
If i put them with %put _users_ into the log i get a list like this:&lt;BR /&gt;
&lt;BR /&gt;
TEST_MACRO mvar_1&lt;BR /&gt;
GLOBAL _SASSPLEVEL SAS 9.1.3 Service Pack 4&lt;BR /&gt;
GLOBAL _EGUSERNAME &amp;#6;&amp;#8;&lt;BR /&gt;
GLOBAL _EGSERVERNAME &amp;#6;SASReporting&amp;#8;&lt;BR /&gt;
&lt;BR /&gt;
The variable-type is the macro-name, not global or local.&lt;BR /&gt;
Might that be the problem?</description>
      <pubDate>Thu, 29 May 2008 12:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/global-statement-wirth-dynamic-varaible-names/m-p/21588#M3483</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-29T12:27:14Z</dc:date>
    </item>
  </channel>
</rss>

