<?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: OPTIONS MPRINT does not work on SAS OnDemand for Academics in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969069#M2724</link>
    <description>&lt;P&gt;No need to exit SAS/Studio.&amp;nbsp; Just uses the &lt;STRONG&gt;Reset SAS Session (F9&lt;/STRONG&gt;) option from "hamburger" icon.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jun 2025 18:33:58 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-06-15T18:33:58Z</dc:date>
    <item>
      <title>OPTIONS MPRINT does not work on SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969049#M2720</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m using &lt;STRONG&gt;SAS OnDemand for Academics&lt;/STRONG&gt; to teach SAS programming.&lt;/P&gt;&lt;P&gt;As I prepare to teach &lt;STRONG&gt;SAS Macros&lt;/STRONG&gt;, I noticed that the &lt;CODE&gt;MPRINT&lt;/CODE&gt; option does not seem to take effect. Even after including &lt;CODE&gt;OPTIONS MPRINT;&lt;/CODE&gt; in my code, the macro-generated code is not appearing in the log window.&lt;/P&gt;&lt;P&gt;I'm trying to determine whether &lt;CODE&gt;MPRINT&lt;/CODE&gt; is simply not supported in this environment, or if there's a way to &lt;STRONG&gt;enforce or activate it properly&lt;/STRONG&gt; within SAS OnDemand.&lt;/P&gt;&lt;P&gt;Has anyone encountered this issue or found a workaround?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;James&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 00:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969049#M2720</guid>
      <dc:creator>jjyang20</dc:creator>
      <dc:date>2025-06-15T00:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: OPTIONS MPRINT does not work on SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969054#M2721</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/356640"&gt;@jjyang20&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tried and worked!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;129        OPTIONS
 130        FULLSTIMER /* Writes all available system performance statistics to the SAS log */
 131        SORTEQUALS /* Controls how PROC SORT orders observations with identical BY values in the output data set */
 132        OBS=MAX    /* Specifies when to stop processing observations or records */
 133        MSGLEVEL=I /* Controls the level of detail in messages that are written to the SAS log */
 134        SPOOL      /* Controls whether SAS writes SAS statements to a utility data set in the WORK data library */
 135        NOSYNTAXCHECK/* Does not enable syntax check mode for statements that are submitted within a */
 136        /* non-interactive or batch SAS session.       */
 137        COMAMID=TCP/* Identifies the communications access method for connecting a client and a server across */
 138        /* a network */
 139        AUTOSIGNON/* Automatically signs on to the server when the client issues a remote submit request */
 140        /* for server processing.                      */
 141        VALIDVARNAME=ANY  /* Allows the use of column names that contain embedded spaces and special characters */
 142        NOTES
 143        /*SOURCE
 144        SOURCE2*/
 145        &lt;STRONG&gt;MPRINT&lt;/STRONG&gt;
 146        DEBUG=DBMS_SELECT/* shows only the select statements generated */
 147        sastrace=',,t,dsab' /* Display a summary of all generated SQL code, any threaded read/write operations, */
 148        /* and timing summary &amp;amp; details. */
 149        sastraceloc=saslog
 150        nostsuffix
 151        DLCREATEDIR /* Specifies to create a directory for the SAS library that is named in a LIBNAME statement */
 152        /* if the directory does not exist. */
 153        ;


69         %util_parseScaproc(p_inScaprocFileName=%str(&amp;amp;g_logsRoot/sca__analyze.txt)
 70         , p_outDotFilePath=%str(&amp;amp;g_outputRoot)
 71         , p_outDotFileName=analyze.dot
 72         , p_outDsName=work.analyze
 73         , p_includeAttrs_yn=Y, p_includeSteps_yn=Y, p_rankDir=LR)
 L_SCAPROCFILENAME=sca__analyze.txt L_SCAPROCFOLDERNAME=/home/anawarehousing/dotMySASProgram/logs/
 MPRINT(UTIL_PARSESCAPROC):   DATA work.scadata;
 MPRINT(UTIL_PARSESCAPROC):   INFILE "/home/anawarehousing/dotMySASProgram/logs/sca__analyze.txt" LRECL=1000 LENGTH=linelength 
 truncover END=eof;
 MPRINT(UTIL_PARSESCAPROC):   LENGTH scaline $1000 linenum step 5;
 MPRINT(UTIL_PARSESCAPROC):   INPUT @;
 MPRINT(UTIL_PARSESCAPROC):   INPUT scaline $varying1000. linelength;
 MPRINT(UTIL_PARSESCAPROC):   linenum+1;
 MPRINT(UTIL_PARSESCAPROC):   if (_n_=1 OR index(scaline,'STEP SOURCE FOLLOWS')) then step+1 ;
 MPRINT(UTIL_PARSESCAPROC):   RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 03:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969054#M2721</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2025-06-15T03:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: OPTIONS MPRINT does not work on SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969061#M2722</link>
      <description>&lt;P&gt;Please post a code example where this seems to happen; I use "seems" because I know for fact that MPRINT works in ODA.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 10:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969061#M2722</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-06-15T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: OPTIONS MPRINT does not work on SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969068#M2723</link>
      <description>&lt;P&gt;As others have mentioned, the MPRINT option does work on ODA. You can prove it to yourself by starting a fresh SAS Studio session (exit out of ODA, then come back in) and running a simple macro program. For example, you could run this program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint;

%macro mac1;
proc print data=sashelp.cars(obs=10);
run;
%mend;

%mac1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For your existing code- perhaps you have unbalanced quotation marks or your macro function did not correctly complete when being defined? In both those cases, SAS gets into a situation where any additional code is run as if inside a text string or inside a macro definition. There is no universal way to get out of those situations. Instead, you should exit out of ODA, restart SAS Studio, then fix your code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 17:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969068#M2723</guid>
      <dc:creator>JackieJ_SAS</dc:creator>
      <dc:date>2025-06-15T17:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: OPTIONS MPRINT does not work on SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969069#M2724</link>
      <description>&lt;P&gt;No need to exit SAS/Studio.&amp;nbsp; Just uses the &lt;STRONG&gt;Reset SAS Session (F9&lt;/STRONG&gt;) option from "hamburger" icon.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 18:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/OPTIONS-MPRINT-does-not-work-on-SAS-OnDemand-for-Academics/m-p/969069#M2724</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-06-15T18:33:58Z</dc:date>
    </item>
  </channel>
</rss>

