<?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 Output SAS Code from Complied Macro from Log window to external file without Notes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Output-SAS-Code-from-Complied-Macro-from-Log-window-to-external/m-p/492025#M129231</link>
    <description>&lt;P&gt;I have some ABC macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have called ABC macro with mprint option. I can see sas code of the complied macro with notes and etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want clean code of that complied macro where I can edit code in between any step and run that code for my self.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 11:39:35 GMT</pubDate>
    <dc:creator>vandhan</dc:creator>
    <dc:date>2018-09-03T11:39:35Z</dc:date>
    <item>
      <title>Output SAS Code from Complied Macro from Log window to external file without Notes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-SAS-Code-from-Complied-Macro-from-Log-window-to-external/m-p/492025#M129231</link>
      <description>&lt;P&gt;I have some ABC macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have called ABC macro with mprint option. I can see sas code of the complied macro with notes and etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want clean code of that complied macro where I can edit code in between any step and run that code for my self.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-SAS-Code-from-Complied-Macro-from-Log-window-to-external/m-p/492025#M129231</guid>
      <dc:creator>vandhan</dc:creator>
      <dc:date>2018-09-03T11:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Output SAS Code from Complied Macro from Log window to external file without Notes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-SAS-Code-from-Complied-Macro-from-Log-window-to-external/m-p/492029#M129235</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;I can see sas code of the complied macro with notes and etc." - you can see this in the log yes?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"I want clean code of that complied macro " - other than taking the log output and cleaning it up yourself, the best idea is to get the source text.&amp;nbsp; It is always best to get the source text (in fact its always best to keep macros as plain text files - this would not only make this question easier, but there are a number of issues with proprietary binary files - if you ever try to go 32bit-64bit or vice versa you will find out).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"where I can edit code in between any step and run that code for my self." - this does not make any sense, code is created before run time, if you need to have generic code, then you need macro coding or call execute.&amp;nbsp; However as you have not provided any information I cannot provide any further help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-SAS-Code-from-Complied-Macro-from-Log-window-to-external/m-p/492029#M129235</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-03T11:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Output SAS Code from Complied Macro from Log window to external file without Notes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Output-SAS-Code-from-Complied-Macro-from-Log-window-to-external/m-p/492033#M129238</link>
      <description>&lt;P&gt;If a macro is compiled with the source option, you can copy the code to a file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;option mstored sasmstore=sasuser;
%macro test/store source;
%put this is my macro;
%mend;

%copy test/source outfile='$HOME/sascommunity/test.sas';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or just to the log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%copy test/source;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With the second method, you'll already have clean code for copy/pasting in the log:&lt;/P&gt;
&lt;PRE&gt;28         %macro test/store source;
29         %put this is my macro;
30         %mend;
31         
32         %copy test/source;
%macro test/store source;
%put this is my macro;
%mend;
&lt;/PRE&gt;
&lt;P&gt;You find this in the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=p0oltlodtnemugn109vxxa76sref.htm&amp;amp;locale=en" target="_blank"&gt;documentation of the %COPY statement&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 12:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Output-SAS-Code-from-Complied-Macro-from-Log-window-to-external/m-p/492033#M129238</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-03T12:07:58Z</dc:date>
    </item>
  </channel>
</rss>

