<?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: Remove Comma from Macro number in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542492#M7556</link>
    <description>&lt;P&gt;Well, again,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;, we don't know the exact problem, we have been told only a very simplified version of the problem, and your solution may be fine and mine may not work on the real problem.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 16:49:53 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-03-12T16:49:53Z</dc:date>
    <item>
      <title>Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542477#M7548</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let have=123,456; 
/*This will always be a number with commas. It can also be 123,456,789*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;I just want another macro variable having all numbers except for the comma.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542477#M7548</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2019-03-12T16:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542478#M7549</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let have=123,456; 

%let want=%sysfunc(compress(%superq(have),,kd));
%put &amp;amp;=want;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;%let have=123,456;&lt;BR /&gt;491&lt;BR /&gt;492 %let want=%sysfunc(compress(%superq(have),,kd));&lt;BR /&gt;493 %put &amp;amp;=want;&lt;BR /&gt;WANT=123456&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542478#M7549</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-12T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542488#M7554</link>
      <description>&lt;P&gt;An alternative to the above, which will remove other non-numeric characters should there be any (not just the comma) is the following, which removes only the commas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let have=123,456; 
%let want=%sysfunc(compress(%bquote(&amp;amp;have),%str(,)));
%put &amp;amp;=want;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542488#M7554</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-12T16:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542489#M7555</link>
      <description>&lt;P&gt;Excellent thinking &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; quant miller thinks in terms of dollars i.e what if the value was &lt;STRONG&gt;$&lt;/STRONG&gt;100,000,000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rich man, hopefully he buys me a coffee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope OP got the analogy lol&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542489#M7555</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-12T16:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542492#M7556</link>
      <description>&lt;P&gt;Well, again,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;, we don't know the exact problem, we have been told only a very simplified version of the problem, and your solution may be fine and mine may not work on the real problem.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542492#M7556</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-12T16:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542498#M7558</link>
      <description>&lt;P&gt;Sometimes prevention is better than correction.&lt;/P&gt;
&lt;P&gt;How is that macro variable with a comma made in the first place?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In&amp;nbsp;places where I need the same value in multiple macro variables with such differences I make them at the same time with different rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that since commas are the default delimiter for macro parameters and many functions the idea of placing commas into macro variables is generally quite suspect to begin with.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 19:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542498#M7558</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-12T19:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542528#M7560</link>
      <description>&lt;P&gt;Yes It is perfect.&lt;/P&gt;&lt;P&gt;But One question:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why dont you have &amp;amp;have.? (instead there is just "have").&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is it that way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542528#M7560</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2019-03-12T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542529#M7561</link>
      <description>&lt;P&gt;just syntax,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The argument of %superq doesn't require a macro trigger &amp;amp;&amp;nbsp; for the resolution to occur. I think it's a touch faster as it &lt;STRONG&gt;immediately&lt;/STRONG&gt; quotes the value of a macro variable with no further resolution to occur by quoting the resolved value of the macro var.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other %bquote does give room for further resolution should a macro var resolves to a value that is a macro trigger.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542529#M7561</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-12T18:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Comma from Macro number</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542530#M7562</link>
      <description>&lt;P&gt;Also I love superq&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The name sounds appealing besides the execution performance lol &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-Comma-from-Macro-number/m-p/542530#M7562</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-12T18:09:39Z</dc:date>
    </item>
  </channel>
</rss>

