<?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 EG - Wrapper code and MPRINT/MLOGIC create mess in log in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530152#M5675</link>
    <description>They're set in the program editor. The log snippet in my original post appears around every bit of code I run from the program.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 25 Jan 2019 18:50:50 GMT</pubDate>
    <dc:creator>coffee_liz</dc:creator>
    <dc:date>2019-01-25T18:50:50Z</dc:date>
    <item>
      <title>SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530126#M5666</link>
      <description>&lt;P&gt;I'm using SAS Enterprise Guide 7.1. I deselected the "Show generated wrapper code in SAS log," which displays a macro instead of the code in the log. But since I need to use MPRINT/MLOGIC/SYMBOLGEN in my SAS code, the replacement for the wrapper code turns into this mess in the log, which is even worse than the original wrapper code - any way to supress this without turning off macro debugging options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 %_eg_hidenotesandsource;&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): Beginning execution.&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %GLOBAL _EGNOTES&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %GLOBAL _EGSOURCE&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %LET (variable name is _EGNOTES)&lt;BR /&gt;MPRINT(_EG_HIDENOTESANDSOURCE): options nonotes;&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %LET (variable name is _EGSOURCE)&lt;BR /&gt;MPRINT(_EG_HIDENOTESANDSOURCE): options nosource;&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): Ending execution.&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): Beginning execution.&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): %GLOBAL _EGNOTES&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): %GLOBAL _EGSOURCE&lt;BR /&gt;SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES&lt;BR /&gt;MPRINT(_EG_RESTORENOTESANDSOURCE): options NOTES;&lt;BR /&gt;SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE&lt;BR /&gt;MPRINT(_EG_RESTORENOTESANDSOURCE): options SOURCE;&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): Ending execution.&lt;BR /&gt;5 %_eg_hidenotesandsource;&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): Beginning execution.&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %GLOBAL _EGNOTES&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %GLOBAL _EGSOURCE&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %LET (variable name is _EGNOTES)&lt;BR /&gt;MPRINT(_EG_HIDENOTESANDSOURCE): options nonotes;&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): %LET (variable name is _EGSOURCE)&lt;BR /&gt;MPRINT(_EG_HIDENOTESANDSOURCE): options nosource;&lt;BR /&gt;MLOGIC(_EG_HIDENOTESANDSOURCE): Ending execution.&lt;BR /&gt;SYMBOLGEN: Macro variable SASWORKLOCATION resolves to "D:\SAS-TEMP\_TD13064_S12ZAPSTAT07_\Prc2/"&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): Beginning execution.&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): %GLOBAL _EGNOTES&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): %GLOBAL _EGSOURCE&lt;BR /&gt;SYMBOLGEN: Macro variable _EGNOTES resolves to NOTES&lt;BR /&gt;MPRINT(_EG_RESTORENOTESANDSOURCE): options NOTES;&lt;BR /&gt;SYMBOLGEN: Macro variable _EGSOURCE resolves to SOURCE&lt;BR /&gt;MPRINT(_EG_RESTORENOTESANDSOURCE): options SOURCE;&lt;BR /&gt;MLOGIC(_EG_RESTORENOTESANDSOURCE): Ending execution.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 17:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530126#M5666</guid>
      <dc:creator>coffee_liz</dc:creator>
      <dc:date>2019-01-25T17:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530131#M5668</link>
      <description>Those are the output from MLOGIC, which you stated you wanted turned on. If you don't want the logic comparisons, turn it off.</description>
      <pubDate>Fri, 25 Jan 2019 17:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530131#M5668</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-25T17:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530135#M5671</link>
      <description>Thanks, Reeza. But I want the MLOGIC output for everything *except* %_eg_hidenotesandsource - not sure if that's possible.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jan 2019 17:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530135#M5671</guid>
      <dc:creator>coffee_liz</dc:creator>
      <dc:date>2019-01-25T17:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530141#M5672</link>
      <description>Unfortunately there's no way to turn off the wrapper code that I'm aware of.</description>
      <pubDate>Fri, 25 Jan 2019 18:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530141#M5672</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-25T18:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530148#M5674</link>
      <description>&lt;P&gt;Where did you set the options for SYMBOLGEN MPRINT MLOGIC. If you have those in the program editor, then that options will be set only after the wrapper is executed. By any chance did you set the options under tools&amp;gt;options&amp;gt;SAS Programs&amp;gt;Insert custom SAS code before submitted code ?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530148#M5674</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-01-25T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530152#M5675</link>
      <description>They're set in the program editor. The log snippet in my original post appears around every bit of code I run from the program.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530152#M5675</guid>
      <dc:creator>coffee_liz</dc:creator>
      <dc:date>2019-01-25T18:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530153#M5676</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Where did you set the options for SYMBOLGEN MPRINT MLOGIC. If you have those in the program editor, then that options will be set only after the wrapper is executed. By any chance did you set the options under tools&amp;gt;options&amp;gt;SAS Programs&amp;gt;Insert custom SAS code before submitted code ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And are you&amp;nbsp;turning it off at the end of your program - before the closing wrapper code?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530153#M5676</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-25T18:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530157#M5678</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/257750"&gt;@coffee_liz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;They're set in the program editor. The log snippet in my original post appears around every bit of code I run from the program.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;&amp;nbsp; is correct, please mark his answer as correct. To remove those notes, turn the options on at the top of your program and then off again at the bottom and you don't get the messages.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried also placing that code in the 'run before/after process' under tools but it executes after the wrapper code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can test it with this, a fully workable SAS program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint mlogic symbolgen;

/********************************************************************
Example : Call macro using parameters from data set
********************************************************************/

*define macro to be called later;
%macro summary(age=, sex=);

proc print data=sashelp.class;
	where age=&amp;amp;age and sex="&amp;amp;sex";
run;

%mend;

*sort data to ensure correct order for next steps;
proc sort data=sashelp.class out=class;
by age sex;
run;

*create macro string to be called in next step. Note the macro is called at the last of each reord;
data sample;
set class;
by age sex;

if last.sex;
string =
    catt('%summary(age=', age, ',sex=', sex, ');');
put string;
run;

*Call macro - can be done in previous step but broken out here for demonstration purposes;
data _null_;
set sample;
call execute(string);
run;

options nomprint nomlogic nosymbolgen;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530157#M5678</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-25T18:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Wrapper code and MPRINT/MLOGIC create mess in log</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530158#M5679</link>
      <description>&lt;P&gt;Check what are your default settings:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If by default they are turned on, then you will need to turn them off:&lt;/P&gt;
&lt;P&gt;add --&amp;gt;&lt;STRONG&gt; OPTIONS NOSYMBOLGEN NOMPRINT NOMLOGIC;&lt;/STRONG&gt; to --&amp;gt; go to &lt;STRONG&gt;&lt;EM&gt;Tools&amp;gt;options&amp;gt;SAS Programs&amp;gt;Submit SAS&lt;/EM&gt;&lt;/STRONG&gt; code when server is connected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can turn them on at the beginning of your program and don't forget to turn them off again at the end to suppress the log for the macro that runs after code is submitted.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-Wrapper-code-and-MPRINT-MLOGIC-create-mess-in-log/m-p/530158#M5679</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-01-25T18:59:56Z</dc:date>
    </item>
  </channel>
</rss>

