<?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: SAS MACRO CATALOG: How to retrieve the source code of a compiled macro? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121054#M259746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to dig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also look up the LIST command to understand the output created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 14:19:42 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-06-27T14:19:42Z</dc:date>
    <item>
      <title>SAS MACRO CATALOG: How to retrieve the source code of a compiled macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121050#M259742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, one can retrieve the source code of the complied macro using the following code, but only,&lt;/P&gt;&lt;P&gt;if the macro was stored with the option /STORE &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;SOURCE&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;%&lt;STRONG&gt;&lt;EM&gt;COPY&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;lt;macro name&amp;gt;/SOURCE ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;Is there any chance to get the source code when the macro was compiled and only /STORE option was used?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;I received a macro catalog with older entries (some macros from 1999) and not all corresponding macro programs exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;Natalie&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 12:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121050#M259742</guid>
      <dc:creator>Natalie</dc:creator>
      <dc:date>2013-06-27T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO CATALOG: How to retrieve the source code of a compiled macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121051#M259743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as the macro was not compiled with the secure option then you can retrieve the source code by reading the catalog entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mcat "/path/to/catlog/dir";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename mcat catalog "mcat.sasmacr.nonsecure.macro"; *[libname].sasmacr.[macname].macro ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile mcat;&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;list;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&amp;nbsp; This is documented in the %MACRO Statement of the SAS Macro Language Reference Manual&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#macro-stmt.htm" title="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#macro-stmt.htm"&gt;SAS(R) 9.2 Macro Language: Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 13:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121051#M259743</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2013-06-27T13:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO CATALOG: How to retrieve the source code of a compiled macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121052#M259744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or did you try :&amp;nbsp;&amp;nbsp;&amp;nbsp; options mprint mlogic symbolgen ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 13:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121052#M259744</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-06-27T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO CATALOG: How to retrieve the source code of a compiled macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121053#M259745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="n fn" id="name"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;Matthew, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;thanks, the sas code worked fine, but the content in LOG was unfortenately not readable &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;(I tired it on one of my own macros, which were defentely not stores in secure mode)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;This is what I get in LOG (very confusing):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 CHAR ......CHECK_VARIABLES...................PL..9.2 ........................ ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZONE 00000044444554544444500000000000000000005400323222220000000000000000000010002000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMR 1000F03853BF612912C5300000000000000000000C009E2000000000400000000000100000000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;81 ....+...€...°...&amp;gt;................... 116&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZONE 000020008000B00030000000000000000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMR B100B0000E000000E0000000000000000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 CHAR ........_CHECKDATASET........................... 48&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZONE 000000005444444454545000000000000000000000000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMR 200000D0F3853B4141354000000000000000000000000000&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;SPAN class="full-name"&gt;&lt;SPAN class="given-name"&gt;Natalie&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 13:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121053#M259745</guid>
      <dc:creator>Natalie</dc:creator>
      <dc:date>2013-06-27T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MACRO CATALOG: How to retrieve the source code of a compiled macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121054#M259746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to dig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also look up the LIST command to understand the output created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MACRO-CATALOG-How-to-retrieve-the-source-code-of-a-compiled/m-p/121054#M259746</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-06-27T14:19:42Z</dc:date>
    </item>
  </channel>
</rss>

