<?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: MACRO: MPRINT incorrect macro value parameter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298062#M62645</link>
    <description>&lt;P&gt;However note that if you run Proc Options the units do appear. An interesting artifact though.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 14:56:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-09-13T14:56:26Z</dc:date>
    <item>
      <title>MACRO: MPRINT incorrect macro value parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298056#M62641</link>
      <description>&lt;P&gt;I found this little curiousity today:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1589 %macro m_r_options_pagelayout&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1590&amp;nbsp;&amp;nbsp;&amp;nbsp; ( topmargin&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0.375in&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1591&amp;nbsp;&amp;nbsp;&amp;nbsp; , leftmargin&amp;nbsp;&amp;nbsp; = 0.750in&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1592&amp;nbsp;&amp;nbsp;&amp;nbsp; , rightmargin&amp;nbsp; = 0.375in&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1593&amp;nbsp;&amp;nbsp;&amp;nbsp; , bottommargin = 0.375in&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1594&amp;nbsp;&amp;nbsp;&amp;nbsp; ) ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1595&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1596&amp;nbsp;&amp;nbsp; options orientation&amp;nbsp; = portrait&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1597&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; topmargin&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;amp;topmargin.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1598 &lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;leftmargin&amp;nbsp;&amp;nbsp; = &amp;amp;leftmargin.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1599 &lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;rightmargin&amp;nbsp; = &amp;amp;rightmargin.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1600 &lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;bottommargin = &amp;amp;bottommargin.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1601 &lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1602&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1603 %mend m_r_options_pagelayout ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1604&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1605 options mprint ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1606 %m_r_options_pagelayout( )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;MPRINT(M_R_OPTIONS_PAGELAYOUT): options orientation = portrait &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;topmargin = 0.375&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;leftmargin = 0.750 rightmargin = 0.375 bottommargin = 0.375 ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1607&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1608 options nomprint ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1609 %put %m_r_options_pagelayout( ) ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;options orientation = portrait &lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;topmargin = 0.375&lt;/STRONG&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;leftmargin = 0.750in rightmargin = 0.375in bottommargin&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;= 0.375in&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Notice that the MPRINT of the macro call OMITS the in (inches).&amp;nbsp; Does anyone explanation?&amp;nbsp; Note that this is not SAS stripping off IN because that is the default units for this options:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1621 %m_r_options_pagelayout&lt;/P&gt;
&lt;P&gt;1622&amp;nbsp;&amp;nbsp;&amp;nbsp; ( topmargin = 0.375cm&lt;/P&gt;
&lt;P&gt;1623&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;MPRINT(M_R_OPTIONS_PAGELAYOUT): options orientation = portrait &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;topmargin = 0.375&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;leftmargin = 0.750 rightmargin = 0.375 bottommargin = 0.375 ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;v9.4&lt;/P&gt;
&lt;P&gt;Operating System: WX64_SV .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3"&gt;Kevin&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 14:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298056#M62641</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-09-13T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO: MPRINT incorrect macro value parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298061#M62644</link>
      <description>&lt;P&gt;It is storing the units. &amp;nbsp;It is just MPRINT output that is miss leading.&lt;/P&gt;
&lt;P&gt;It does it with SAS 9.2 also. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 14:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298061#M62644</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-09-13T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO: MPRINT incorrect macro value parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298062#M62645</link>
      <description>&lt;P&gt;However note that if you run Proc Options the units do appear. An interesting artifact though.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 14:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298062#M62645</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-13T14:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO: MPRINT incorrect macro value parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298144#M62666</link>
      <description>&lt;P&gt;In SAS 9.4 TS1M3 similar behaviour.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MPRINT strips the units but they are being resolved properly via Symbolgen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;2
3    %macro m_r_options_pagelayout
4       ( topmargin    = 0.375in
5       , leftmargin   = 0.750in
6       , rightmargin  = 0.375in
7       , bottommargin = 0.375in
8       ) ;
9
10     options orientation  = portrait
11             topmargin    = &amp;amp;topmargin.
12             leftmargin   = &amp;amp;leftmargin.
13             rightmargin  = &amp;amp;rightmargin.
14             bottommargin = &amp;amp;bottommargin.
15             ;
16
17   %mend m_r_options_pagelayout ;
18
19   %m_r_options_pagelayout;
SYMBOLGEN:  Macro variable TOPMARGIN resolves to 0.375in
SYMBOLGEN:  Macro variable LEFTMARGIN resolves to 0.750in
SYMBOLGEN:  Macro variable RIGHTMARGIN resolves to 0.375in
SYMBOLGEN:  Macro variable BOTTOMMARGIN resolves to 0.375in
MPRINT(M_R_OPTIONS_PAGELAYOUT):   options orientation = portrait topmargin = 0.375
leftmargin = 0.750 rightmargin = 0.375 bottommargin = 0.375 ;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Sep 2016 20:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298144#M62666</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-13T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO: MPRINT incorrect macro value parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298155#M62673</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;&lt;FONT size="4"&gt;See: &lt;A href="http://www.pharmasug.org/proceedings/" target="_blank"&gt;http://www.pharmasug.org/proceedings/&lt;/A&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;2016&lt;/FONT&gt;&lt;FONT size="4"&gt;/TT/PharmaSUG-&lt;/FONT&gt;&lt;FONT size="4"&gt;2016&lt;/FONT&gt;&lt;FONT size="4"&gt;-TT17.pdf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;MFILE captures the WRONG value, too:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;%&lt;I&gt;m_debug_mfile&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt; ( mcall = m_r_options_pagelayout( topmargin = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;0.5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;cm ))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;options orientation = portrait topmargin = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;0.5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt; leftmargin = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;0.750&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt; rightmargin = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;0.375&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt; bottommargin = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;0.375&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;This&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt; would be &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;0.5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;in NOT &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;0.5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;cm, since in is the &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;default.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 21:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298155#M62673</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-09-13T21:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO: MPRINT incorrect macro value parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298157#M62674</link>
      <description>&lt;P&gt;No, it gets set properly, how MPRINT displays is the issue. You can check the value of the option set:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put topmargin= %sysfunc(
     getoption(topmargin));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Sep 2016 21:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-MPRINT-incorrect-macro-value-parameter/m-p/298157#M62674</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-13T21:30:13Z</dc:date>
    </item>
  </channel>
</rss>

