<?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 call result error with % sign in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-call-result-error-with-sign/m-p/900884#M356027</link>
    <description>&lt;P&gt;For this example, you don't actually need any macro quoting, you could just use:&lt;/P&gt;
&lt;PRE&gt;8    %chk (result = Intensity (%) )

val=Intensity (%)
NOTE: The data set WORK.ONE has 1 observations and 1 variables.
&lt;/PRE&gt;</description>
    <pubDate>Tue, 31 Oct 2023 11:25:28 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-10-31T11:25:28Z</dc:date>
    <item>
      <title>macro call result error with % sign</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-call-result-error-with-sign/m-p/900880#M356023</link>
      <description>&lt;P&gt;&lt;BR /&gt;%macro chk (result = );&lt;BR /&gt;data one;&lt;BR /&gt;val = "&amp;amp;result.";&lt;BR /&gt;run;&lt;BR /&gt;%mend chk;&lt;/P&gt;
&lt;P&gt;%chk (result = %str(Intensity (%)) );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to print result for VAL variable&amp;nbsp; as "Intensity (%)"&amp;nbsp; &amp;nbsp; ,e.g VAL = "Intensity(%)"&amp;nbsp; &amp;nbsp;, but not able to do it with above code.&lt;/P&gt;
&lt;P&gt;any suggestion please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 10:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-call-result-error-with-sign/m-p/900880#M356023</guid>
      <dc:creator>abhinayingole</dc:creator>
      <dc:date>2023-10-31T10:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: macro call result error with % sign</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-call-result-error-with-sign/m-p/900881#M356024</link>
      <description>&lt;P&gt;When you use %STR(), you can mask a % with a %, so use %%.&amp;nbsp; See the docs:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p0pnc7p9n4h6g5n16g6js048nhfl.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p0pnc7p9n4h6g5n16g6js048nhfl.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example Log:&lt;/P&gt;
&lt;PRE&gt;1    %macro chk (result = );
2    data one;
3    val = "&amp;amp;result.";
4    put val= ;
5    run;
6    %mend chk;
7
8    %chk (result = %str(Intensity (%%)) );

val=Intensity (%)
NOTE: The data set WORK.ONE has 1 observations and 1 variables.
&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2023 11:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-call-result-error-with-sign/m-p/900881#M356024</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-10-31T11:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: macro call result error with % sign</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-call-result-error-with-sign/m-p/900884#M356027</link>
      <description>&lt;P&gt;For this example, you don't actually need any macro quoting, you could just use:&lt;/P&gt;
&lt;PRE&gt;8    %chk (result = Intensity (%) )

val=Intensity (%)
NOTE: The data set WORK.ONE has 1 observations and 1 variables.
&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2023 11:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-call-result-error-with-sign/m-p/900884#M356027</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-10-31T11:25:28Z</dc:date>
    </item>
  </channel>
</rss>

