<?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 Mask paired brackets in macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Mask-paired-brackets-in-macro-variable/m-p/535127#M146910</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spent significant amount of time experimenting with %str and %bquote but without success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;%let year = 2019;&lt;BR /&gt;%let lable = %sysfunc(cat(text,%str(%(&amp;amp;year.),text)); %put &amp;amp;=lable;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; text(2019text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Desired result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; text(2019)text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to mask the second bracket I get errors.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 09:50:11 GMT</pubDate>
    <dc:creator>KonstantinVasil</dc:creator>
    <dc:date>2019-02-13T09:50:11Z</dc:date>
    <item>
      <title>Mask paired brackets in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mask-paired-brackets-in-macro-variable/m-p/535127#M146910</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spent significant amount of time experimenting with %str and %bquote but without success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;%let year = 2019;&lt;BR /&gt;%let lable = %sysfunc(cat(text,%str(%(&amp;amp;year.),text)); %put &amp;amp;=lable;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; text(2019text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Desired result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; text(2019)text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to mask the second bracket I get errors.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 09:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mask-paired-brackets-in-macro-variable/m-p/535127#M146910</guid>
      <dc:creator>KonstantinVasil</dc:creator>
      <dc:date>2019-02-13T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mask paired brackets in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mask-paired-brackets-in-macro-variable/m-p/535130#M146911</link>
      <description>&lt;P&gt;No masking needed at all:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let year=2019;

%let lable=text(&amp;amp;year.)text;

%put lable=&amp;amp;lable.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;37         %let year=2019;
38         
39         %let lable=text(&amp;amp;year.)text;
40         
41         %put lable=&amp;amp;lable.;
lable=text(2019)text
&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 09:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mask-paired-brackets-in-macro-variable/m-p/535130#M146911</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-13T09:55:21Z</dc:date>
    </item>
  </channel>
</rss>

