<?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: %SYSMEXECNAME eats blanks somehow? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SYSMEXECNAME-eats-blanks-somehow/m-p/400636#M97136</link>
    <description>&lt;P&gt;I raised this issue with SAS support back in August&amp;nbsp; 2016.&amp;nbsp; Not sure if they committed to fixing it.&lt;/P&gt;
&lt;P&gt;What version of SAS are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Hello Tom,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for bring this behavior to our attention. &amp;nbsp;I have reported it to the macro developer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the following syntax as a work around.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%put Depth =%str( )%sysmexecdepth ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kevin Russell&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Foundation SAS Team&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS Technical Support&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 03 Oct 2017 16:17:18 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-10-03T16:17:18Z</dc:date>
    <item>
      <title>%SYSMEXECNAME eats blanks somehow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSMEXECNAME-eats-blanks-somehow/m-p/400633#M97133</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using %SYSMEXECNAME() to get the name of currently executing macros, and noticed today that if I have text, then a blank, then a call to %SYSMEXECNAME(), the blank disappears.&amp;nbsp;&amp;nbsp; Does this make any sense?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can work around it by using a quoted blank, %STR( ).&amp;nbsp; But it was a surprise to me.&amp;nbsp; I can't think why the blanks would disappear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test;
  %put There should be one space after colon but there are none: %sysmexecname(1);
  %put There should be three spaces after colon but there are none:   %sysmexecname(1);
  %put A quoted blank will work:%str( )%sysmexecname(1);
  %put SYSMACRONAME works fine: &amp;amp;sysmacroname;
%mend;
%test;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns:&lt;/P&gt;
&lt;PRE&gt;There should be one space after colon but there are none:TEST
There should be three spaces after colon but there are none:TEST
A quoted blank will work: TEST
SYSMACRONAME works fine: TEST&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 16:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSMEXECNAME-eats-blanks-somehow/m-p/400633#M97133</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-10-03T16:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSMEXECNAME eats blanks somehow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSMEXECNAME-eats-blanks-somehow/m-p/400636#M97136</link>
      <description>&lt;P&gt;I raised this issue with SAS support back in August&amp;nbsp; 2016.&amp;nbsp; Not sure if they committed to fixing it.&lt;/P&gt;
&lt;P&gt;What version of SAS are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Hello Tom,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for bring this behavior to our attention. &amp;nbsp;I have reported it to the macro developer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the following syntax as a work around.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%put Depth =%str( )%sysmexecdepth ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kevin Russell&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Foundation SAS Team&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS Technical Support&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 16:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSMEXECNAME-eats-blanks-somehow/m-p/400636#M97136</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-03T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSMEXECNAME eats blanks somehow?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSMEXECNAME-eats-blanks-somehow/m-p/400638#M97137</link>
      <description>&lt;P&gt;Thanks Tom.&amp;nbsp; I'm running 9.4M4 on Windows.&amp;nbsp; M5 is out now, maybe somebody who has that can try it and report back.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 16:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSMEXECNAME-eats-blanks-somehow/m-p/400638#M97137</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-10-03T16:15:31Z</dc:date>
    </item>
  </channel>
</rss>

