<?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  macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Global-macro-variable/m-p/551004#M153036</link>
    <description>&lt;P&gt;Global macro variables exist within a SAS session. They cannot be shared across SAS sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, if you have a team and you want every team member to have a group of standard global macro variables (&amp;amp;OurTeam, &amp;amp;OurBoss, &amp;amp;Project, etc.) there are lots of options, most of which would involve sharing code and/or data among the team members.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you have a shared autoexec, you could define the macro variables there.&amp;nbsp; &amp;nbsp;To get more meaningful help, I would suggest you describe a bit more about your environment (server SAS, PC SAS, Enterprise Guide, Studio, ....?)&amp;nbsp; and also what approaches you might have considered/tried already.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 11:37:47 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2019-04-15T11:37:47Z</dc:date>
    <item>
      <title>Global  macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Global-macro-variable/m-p/551002#M153034</link>
      <description>&lt;P&gt;How to create a macro variables globally as it should be accessible by ateam of 10-20 members?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Global-macro-variable/m-p/551002#M153034</guid>
      <dc:creator>gsreddy</dc:creator>
      <dc:date>2019-04-15T11:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Global  macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Global-macro-variable/m-p/551004#M153036</link>
      <description>&lt;P&gt;Global macro variables exist within a SAS session. They cannot be shared across SAS sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, if you have a team and you want every team member to have a group of standard global macro variables (&amp;amp;OurTeam, &amp;amp;OurBoss, &amp;amp;Project, etc.) there are lots of options, most of which would involve sharing code and/or data among the team members.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you have a shared autoexec, you could define the macro variables there.&amp;nbsp; &amp;nbsp;To get more meaningful help, I would suggest you describe a bit more about your environment (server SAS, PC SAS, Enterprise Guide, Studio, ....?)&amp;nbsp; and also what approaches you might have considered/tried already.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Global-macro-variable/m-p/551004#M153036</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-04-15T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Global  macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Global-macro-variable/m-p/551046#M153063</link>
      <description>It might be feasible to store the information as a permanent SAS data set instead of  macro variables.  In the simplest scenario you would need two variables:&lt;BR /&gt;&lt;BR /&gt;NAME = name of a shared macro variable&lt;BR /&gt;VALUE = value of that variable &lt;BR /&gt;&lt;BR /&gt;Then each user could easily reconstruct all the macro variables:&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;set perm.maclist;&lt;BR /&gt;call symputx(name, value) ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Two issues to consider:&lt;BR /&gt;&lt;BR /&gt;Do users need to update the list of macro variables?  This will create contention for the data set.&lt;BR /&gt;&lt;BR /&gt;What length should be used for VALUE?  It needs to be long enough to hold your longest macro variable.&lt;BR /&gt;&lt;BR /&gt;Note that it would be possible to make the DATA _NULL_ step part of an auto autoexec file.</description>
      <pubDate>Mon, 15 Apr 2019 13:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Global-macro-variable/m-p/551046#M153063</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-15T13:48:10Z</dc:date>
    </item>
  </channel>
</rss>

