<?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: Quote substring in marco in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Quote-substring-in-marco/m-p/334724#M272275</link>
    <description>&lt;P&gt;Check it yourself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let x=%substr("ABCD",2,1); 

%put &amp;amp;X;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2017 17:28:38 GMT</pubDate>
    <dc:creator>DanielSantos</dc:creator>
    <dc:date>2017-02-21T17:28:38Z</dc:date>
    <item>
      <title>Quote substring in marco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-substring-in-marco/m-p/334718#M272273</link>
      <description>&lt;PRE&gt;%let x=%substr("ABCD",2,1); &lt;/PRE&gt;&lt;P&gt;What is the correct answer? A or B?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-substring-in-marco/m-p/334718#M272273</guid>
      <dc:creator>sas_newbie3</dc:creator>
      <dc:date>2017-02-21T17:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Quote substring in marco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-substring-in-marco/m-p/334723#M272274</link>
      <description>&lt;P&gt;A is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the macro language, the quoting is not necessary, so the opening " is the first character in the string and A is the second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use "%let x=%substr(ABCD,2,1);" and get the result you expect.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-substring-in-marco/m-p/334723#M272274</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-02-21T17:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Quote substring in marco</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-substring-in-marco/m-p/334724#M272275</link>
      <description>&lt;P&gt;Check it yourself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let x=%substr("ABCD",2,1); 

%put &amp;amp;X;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 17:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-substring-in-marco/m-p/334724#M272275</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2017-02-21T17:28:38Z</dc:date>
    </item>
  </channel>
</rss>

