<?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: Quoting function to return the value with single quote in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Quoting-function-to-return-the-value-with-single-quote/m-p/727433#M226243</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the second argument of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p059exu866hqw2n0zw9aoxf3p6oj.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;QUOTE function&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let ab=%sysfunc(quote(hello,%bquote(')));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Mar 2021 14:55:10 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-03-18T14:55:10Z</dc:date>
    <item>
      <title>Quoting function to return the value with single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quoting-function-to-return-the-value-with-single-quote/m-p/727424#M226240</link>
      <description>&lt;P&gt;I'm looking for the function or a way to return the macro variable value with single quote. I tried with quote function as shown below but it is producing result with double quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let ab=%sysfunc(quote(hello));
%put &amp;amp;ab;&lt;/PRE&gt;
&lt;P&gt;Desired Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'hello'&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Mar 2021 14:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quoting-function-to-return-the-value-with-single-quote/m-p/727424#M226240</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2021-03-18T14:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Quoting function to return the value with single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quoting-function-to-return-the-value-with-single-quote/m-p/727433#M226243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the second argument of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p059exu866hqw2n0zw9aoxf3p6oj.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;QUOTE function&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let ab=%sysfunc(quote(hello,%bquote(')));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Mar 2021 14:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quoting-function-to-return-the-value-with-single-quote/m-p/727433#M226243</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-03-18T14:55:10Z</dc:date>
    </item>
  </channel>
</rss>

