<?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 Someone know why SAS do that? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Someone-know-why-SAS-do-that/m-p/275926#M55250</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a macro I concatenate multiple levels. Seems that one of thats levels have a "%", as a separator i use "#" character and I get differents outputs depending on if I put or not " ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here an example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let var=Test;
%let array=%;
%put &amp;amp;array.#&amp;amp;var.;
%#Test#Test
%put &amp;amp;array.# &amp;amp;var.;
%# Test
%put &amp;amp;array. #&amp;amp;var.;
% #Test #Test
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Someone know Why&amp;nbsp;this odd performance? It seems a strange performance that is not presented when there is not the "%"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 11:21:46 GMT</pubDate>
    <dc:creator>arodriguez</dc:creator>
    <dc:date>2016-06-08T11:21:46Z</dc:date>
    <item>
      <title>Someone know why SAS do that?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Someone-know-why-SAS-do-that/m-p/275926#M55250</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a macro I concatenate multiple levels. Seems that one of thats levels have a "%", as a separator i use "#" character and I get differents outputs depending on if I put or not " ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here an example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let var=Test;
%let array=%;
%put &amp;amp;array.#&amp;amp;var.;
%#Test#Test
%put &amp;amp;array.# &amp;amp;var.;
%# Test
%put &amp;amp;array. #&amp;amp;var.;
% #Test #Test
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Someone know Why&amp;nbsp;this odd performance? It seems a strange performance that is not presented when there is not the "%"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Someone-know-why-SAS-do-that/m-p/275926#M55250</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2016-06-08T11:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Someone know why SAS do that?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Someone-know-why-SAS-do-that/m-p/275928#M55251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5856"&gt;@arodriguez﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have come to gripsd with th emacro facility this behaviour will no longer seem strange. The % sign is what's called a type 3 macro trigger. It has special meaning for the macro facility and will throw things off if not properly stripped from that meaning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try coding&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let array=%nrbquote(%);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and your code will run a lot better. &amp;nbsp;(edited from %nrstr(%%) to %nrbquote(%) which is even better)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For background I suggest you read up on macro quoting, an advanced subject indeed. But there are many good resources om the web.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Someone-know-why-SAS-do-that/m-p/275928#M55251</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-08T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Someone know why SAS do that?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Someone-know-why-SAS-do-that/m-p/275932#M55252</link>
      <description>&lt;P&gt;The question really is why are you doing that, are you trying to make unreadable code?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Someone-know-why-SAS-do-that/m-p/275932#M55252</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-08T11:52:06Z</dc:date>
    </item>
  </channel>
</rss>

