<?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 SAS Macro Governance in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698549#M213647</link>
    <description>&lt;P&gt;Hi everyone&lt;/P&gt;
&lt;P&gt;One problem we are facing with SAS is the governance of macros (programs and variables) that we were building lately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a lot of macros and we want to inform our sas users their existence and push them to use it.&amp;nbsp; Any thoughts about it?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 22:15:26 GMT</pubDate>
    <dc:creator>osmelbrito</dc:creator>
    <dc:date>2020-11-12T22:15:26Z</dc:date>
    <item>
      <title>SAS Macro Governance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698549#M213647</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;
&lt;P&gt;One problem we are facing with SAS is the governance of macros (programs and variables) that we were building lately.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a lot of macros and we want to inform our sas users their existence and push them to use it.&amp;nbsp; Any thoughts about it?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 22:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698549#M213647</guid>
      <dc:creator>osmelbrito</dc:creator>
      <dc:date>2020-11-12T22:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Governance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698552#M213649</link>
      <description>&lt;P&gt;Set your macros up in AUTOCALL libraries then add a SASAUTOS option in your SAS server's AUTOEXEC to point to these automatically for all SAS sessions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname OURAUTOS "OurAUTOCALLMacroLibraryFolder";
options sasautos = (OURAUTOS, SASAUTOS);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Putting your macro library first will ensure your resolve before the SAS ones.&lt;/P&gt;
&lt;P&gt;Documenting them on a web page so it is easy for SAS users to find is worth considering.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 22:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698552#M213649</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-12T22:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Governance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698574#M213660</link>
      <description>&lt;P&gt;I also find that having a help call for macros where&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;%macroname(help)&lt;/STRONG&gt;&amp;nbsp; works for all macros,and prints a help page helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also write a &lt;STRONG&gt;%macrolist&amp;nbsp;&lt;/STRONG&gt; macro that lists the available macros and a short description.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, having sensible and coherent names helps too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 04:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698574#M213660</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-11-13T04:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Governance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698700#M213706</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I also find that having a help call for macros where&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;%macroname(help)&lt;/STRONG&gt;&amp;nbsp; works for all macros,and prints a help page helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also write a &lt;STRONG&gt;%macrolist&amp;nbsp;&lt;/STRONG&gt; macro that lists the available macros and a short description.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, having sensible and coherent names helps too.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There are examples of one way of accomplishing this in the SAS supplied %SGANNO macro (and the %annomac if SAS Graph is available)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698700#M213706</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-13T16:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Governance</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698740#M213720</link>
      <description>&lt;P&gt;Agree with the autocall route and documenting the macros on a web page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote a paper a long time ago about automating generation of an html index of a macro library by having a standardized code header in each .sas file, and then using SAS to read in the headers and parse them and write a report via ODS HTML.&amp;nbsp;&amp;nbsp;&lt;A href="https://www.lexjansen.com/nesug/nesug04/po/po04.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug04/po/po04.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I think rather than roll your own, you might look into something like Doxygen&amp;nbsp;&lt;A href="https://www.doxygen.nl/index.html" target="_blank"&gt;https://www.doxygen.nl/index.html&lt;/A&gt;&amp;nbsp;for building documentation from code.&amp;nbsp; I think that is what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28909"&gt;@AllanBowe&lt;/a&gt;&amp;nbsp;uses to build documentation for his macro library.&amp;nbsp; If you open any of the .sas files in&amp;nbsp;&lt;A href="https://github.com/sasjs/core/tree/main/base" target="_blank"&gt;https://github.com/sasjs/core/tree/main/base&lt;/A&gt;.&amp;nbsp; You can see the&amp;nbsp;@ tags for the data in the header.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 17:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Governance/m-p/698740#M213720</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2020-11-13T17:50:33Z</dc:date>
    </item>
  </channel>
</rss>

