<?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: Print macro variables with semi colon in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567884#M11584</link>
    <description>You can see the values assigned with:&lt;BR /&gt;&lt;BR /&gt;%put _user_;&lt;BR /&gt;&lt;BR /&gt;However those semicolons can still cause trouble when you try to use the variables in other ways.</description>
    <pubDate>Fri, 21 Jun 2019 12:17:57 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2019-06-21T12:17:57Z</dc:date>
    <item>
      <title>Print macro variables with semi colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567830#M11578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was creating a dynamic list of code string with semicolon and putting them on macro variables. When i try to verify these constructed statements, i found out that i could not print these as they contain semi colon. An example of my problem below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;call symputx('MyList','stuff with '||'&amp;amp;'||' and '||' ;'||' and some other stuffs');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put &amp;amp;=MyList;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way i could get around this? I dont have to use %put and my main purpose is to be able to review my list as my build is way more complicated that the example above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers for any help.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 04:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567830#M11578</guid>
      <dc:creator>DucatiJong</dc:creator>
      <dc:date>2019-06-21T04:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Print macro variables with semi colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567834#M11580</link>
      <description>&lt;P&gt;You can use a &lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0o0rjikrg6iezn1ltra79iamibr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Macro Quoting Function&lt;/A&gt;&amp;nbsp;to get around this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let MyList=%str(stuff with &amp;amp; and ; and some other stuffs);

%put &amp;amp;MyList;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jun 2019 07:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567834#M11580</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-06-21T07:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Print macro variables with semi colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567884#M11584</link>
      <description>You can see the values assigned with:&lt;BR /&gt;&lt;BR /&gt;%put _user_;&lt;BR /&gt;&lt;BR /&gt;However those semicolons can still cause trouble when you try to use the variables in other ways.</description>
      <pubDate>Fri, 21 Jun 2019 12:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567884#M11584</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-06-21T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Print macro variables with semi colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567890#M11585</link>
      <description>&lt;P&gt;You can use macro quoting to allow the value to print without the macro processor trying to evaluate the semi-colon (or the &amp;amp; and % characters).&lt;/P&gt;
&lt;P&gt;The %SUPERQ() macro function is a good way.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put MYLIST=%superq(mylist);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 12:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/567890#M11585</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-21T12:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Print macro variables with semi colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/568280#M11646</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 05:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-macro-variables-with-semi-colon/m-p/568280#M11646</guid>
      <dc:creator>DucatiJong</dc:creator>
      <dc:date>2019-06-24T05:06:04Z</dc:date>
    </item>
  </channel>
</rss>

