<?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: Post-processing MPRINT Outputs to Generate Macro-Free Code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/375020#M89866</link>
    <description>&lt;P&gt;There's no easy road to integrating here.&amp;nbsp; You have three sources of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) SAS code that is part of the program&lt;/P&gt;
&lt;P&gt;(2) SAS code that is in a file, brought in by %include&lt;/P&gt;
&lt;P&gt;(3) SAS code that is generated by running macros&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MFILE / MPRINT provides the third source, the SAS code that was generated by running macros.&amp;nbsp; But you still have to roll up your sleeves and combine all three sources in the right order.&amp;nbsp; Presumably, this client is paying you for your time to do this.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 15:44:07 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-07-11T15:44:07Z</dc:date>
    <item>
      <title>Post-processing MPRINT Outputs to Generate Macro-Free Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374562#M89705</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a large project with lots of macros and included programs (SAS 9.3 on WIN server via EG 7.1 32-bit). The idea is to produce executable code in external .sas files after the project execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found this article and would like to do exactly they are doing:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2002/proceed/TechTech/tt14.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.lexjansen.com/pharmasug/2002/proceed/TechTech/tt14.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could someone post the code transforming MPRINT Outputs to executable code?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374562#M89705</guid>
      <dc:creator>gabriel_k</dc:creator>
      <dc:date>2017-07-10T15:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing MPRINT Outputs to Generate Macro-Free Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374573#M89710</link>
      <description>&lt;P&gt;While someone took the time to write a paper and a macro about this, you really only need a small change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options mprint;&lt;/P&gt;
&lt;P&gt;filename mprint 'path to some file to hold the SAS code';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run your macro-based code, and take a look at the file that you define in the FILENAME statement.&amp;nbsp; You'll see all the SAS code is there.&amp;nbsp; Although it is not pretty, it's the code you are asking for.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374573#M89710</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-10T15:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing MPRINT Outputs to Generate Macro-Free Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374856#M89803</link>
      <description>&lt;P&gt;How would i write code that is out of Macros ?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 09:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374856#M89803</guid>
      <dc:creator>gabriel_k</dc:creator>
      <dc:date>2017-07-11T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing MPRINT Outputs to Generate Macro-Free Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374888#M89807</link>
      <description>&lt;P&gt;You don't. &amp;nbsp;You just run the code that includes and utilizes the macros. &amp;nbsp;At the end of that, any code that was generated by the macros will magically appear in the file that you have defined in the FILENAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this does NOT include code that is not macro-generated. &amp;nbsp;So if there is a mix of macro and non-macro code, you will still need to integrate the macro-generated code with the non-macro-generated code.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 11:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374888#M89807</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-11T11:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing MPRINT Outputs to Generate Macro-Free Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374918#M89817</link>
      <description>&lt;P&gt;My question actually is about how to intagrate this all and not about the magic of MPRINT option, not to say more. Specificaly when thete is 50000 lines of code and lots of marco variables out of macros ?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374918#M89817</guid>
      <dc:creator>gabriel_k</dc:creator>
      <dc:date>2017-07-11T12:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing MPRINT Outputs to Generate Macro-Free Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374927#M89820</link>
      <description>&lt;P&gt;I think your question would be clearer if you could give an example.&amp;nbsp; You don't need to show 500,000 lines of code.&amp;nbsp; But make an example of the the sort of code you have as a starting points, and then show what your would like to get as output from post-processing the code.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/374927#M89820</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-07-11T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Post-processing MPRINT Outputs to Generate Macro-Free Code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/375020#M89866</link>
      <description>&lt;P&gt;There's no easy road to integrating here.&amp;nbsp; You have three sources of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) SAS code that is part of the program&lt;/P&gt;
&lt;P&gt;(2) SAS code that is in a file, brought in by %include&lt;/P&gt;
&lt;P&gt;(3) SAS code that is generated by running macros&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MFILE / MPRINT provides the third source, the SAS code that was generated by running macros.&amp;nbsp; But you still have to roll up your sleeves and combine all three sources in the right order.&amp;nbsp; Presumably, this client is paying you for your time to do this.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Post-processing-MPRINT-Outputs-to-Generate-Macro-Free-Code/m-p/375020#M89866</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-11T15:44:07Z</dc:date>
    </item>
  </channel>
</rss>

