<?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: How to compile Macro into a perm location with encryption/unreadable?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823642#M325232</link>
    <description>&lt;P&gt;When compiling a macro you can add the option SECURE on the %MACRO statement. Documentation indicates you should not store passwords or code segments, use for entire Proc or Data step. The STORE option lets you specify a specific library and catalog location for the compiled result. Use the system option SASMSTORE= to specify a permanent location. You will need to have the system option MSTORED to use the macro. Read the options of the %MACRO statement in the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Caveat: code compiled in a macro code is specific to OS and version. Catalogs created in SAS 9.3 are not usable by 9.4 and may have issues with the incremental releases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not lose track of the source code or you will not be able to recover the code. We have had that question asked a few times on the forum.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jul 2022 14:55:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-07-16T14:55:01Z</dc:date>
    <item>
      <title>How to compile Macro into a perm location with encryption/unreadable?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823637#M325230</link>
      <description>&lt;P&gt;How to compile Macro into a physical directory? Whenever SAS is open, the macro is there to run?!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also to encrypt it; to make it "unreadable" even with OPION MPRINT...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 13:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823637#M325230</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-07-16T13:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile Macro into a perm location with encryption/unreadable?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823642#M325232</link>
      <description>&lt;P&gt;When compiling a macro you can add the option SECURE on the %MACRO statement. Documentation indicates you should not store passwords or code segments, use for entire Proc or Data step. The STORE option lets you specify a specific library and catalog location for the compiled result. Use the system option SASMSTORE= to specify a permanent location. You will need to have the system option MSTORED to use the macro. Read the options of the %MACRO statement in the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Caveat: code compiled in a macro code is specific to OS and version. Catalogs created in SAS 9.3 are not usable by 9.4 and may have issues with the incremental releases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not lose track of the source code or you will not be able to recover the code. We have had that question asked a few times on the forum.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 14:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823642#M325232</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-16T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile Macro into a perm location with encryption/unreadable?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823663#M325241</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run the SAS DOC codes below. It is fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But one quest: options mstored sasmstore=mylib; tells SAS to find Macro in mylib; DOES that mean work.sasmacr is not working then?!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options mstored sasmstore=mylib;&lt;BR /&gt;libname mylib "C:\Users\24891\sas";&lt;BR /&gt;%macro secure/store secure; /* This macro is encrypted */&lt;BR /&gt;data _null_;&lt;BR /&gt;x=1;&lt;BR /&gt;put "This data step was generated from a secure macro.";&lt;BR /&gt;run;&lt;BR /&gt;%mend secure;&lt;BR /&gt;%secure;&lt;/P&gt;
&lt;P&gt;filename maccat catalog 'mylib.sasmacr.secure.macro';&lt;BR /&gt;data _null_;&lt;BR /&gt;infile maccat;&lt;BR /&gt;input;&lt;BR /&gt;list;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 20:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823663#M325241</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-07-16T20:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile Macro into a perm location with encryption/unreadable?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823670#M325244</link>
      <description>&lt;P&gt;I suggest you read the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n0sjezyl65z1cpn1b6mqfo8115h2.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; on this subject. Once the SASMSTORE option is set. All macros compiled afterwards will be stored in that location. If you already have macros in WORK.SASMACR then those should continue to work.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 23:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compile-Macro-into-a-perm-location-with-encryption/m-p/823670#M325244</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-07-16T23:12:26Z</dc:date>
    </item>
  </channel>
</rss>

