<?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: %nrbquote in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/nrbquote/m-p/677375#M204314</link>
    <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
where substr(num_str,5,2) ="&amp;amp;i";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Aug 2020 01:22:29 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2020-08-18T01:22:29Z</dc:date>
    <item>
      <title>%nrbquote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nrbquote/m-p/677360#M204311</link>
      <description>Sorry i'm not good at english..&lt;BR /&gt;please tell me what grammar is wrong.&lt;BR /&gt;how to fix it...&lt;BR /&gt;I attached a log message below.&lt;BR /&gt;&lt;BR /&gt;%macro number;&lt;BR /&gt;%do i=20 %to 21;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table work.bb_&amp;amp;i. as&lt;BR /&gt;select *&lt;BR /&gt;from work.dummy&lt;BR /&gt;where substr(num_str,5,2) =%nrbquote('&amp;amp;i.');&lt;BR /&gt;quit;&lt;BR /&gt;%end;&lt;BR /&gt;%mend number;&lt;BR /&gt;%number;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Log message&lt;BR /&gt;23 %macro number;&lt;BR /&gt;24 %do i=20 %to 21;&lt;BR /&gt;25 proc sql;&lt;BR /&gt;26 create table work.bb_&amp;amp;amp;i. as&lt;BR /&gt;27 select *&lt;BR /&gt;28 from work.dummy&lt;BR /&gt;29 where substr(num_str,5,2) =%nrbquote('&amp;amp;amp;i.');&lt;BR /&gt;30 quit;&lt;BR /&gt;31 %end;&lt;BR /&gt;32 %mend number;&lt;BR /&gt;33 %number;&lt;BR /&gt;NOTE: Line generated by the macro function "NRBQUOTE".&lt;BR /&gt;1 '20'&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;-&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, (, *, +, -, ALL, ANY, BTRIM, CALCULATED, CASE, INPUT, PUT, SELECT, SOME, SUBSTRING, TRANSLATE,&lt;BR /&gt;USER.&lt;BR /&gt;&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.12 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: Line generated by the macro function "NRBQUOTE".&lt;BR /&gt;1 '21'&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;-&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, (, *, +, -, ALL, ANY, BTRIM, CALCULATED, CASE, INPUT, PUT, SELECT, SOME, SUBSTRING, TRANSLATE,&lt;BR /&gt;USER.&lt;BR /&gt;&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.00 seconds</description>
      <pubDate>Mon, 17 Aug 2020 22:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nrbquote/m-p/677360#M204311</guid>
      <dc:creator>minjeong137</dc:creator>
      <dc:date>2020-08-17T22:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: %nrbquote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nrbquote/m-p/677375#M204314</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
where substr(num_str,5,2) ="&amp;amp;i";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Aug 2020 01:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nrbquote/m-p/677375#M204314</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-08-18T01:22:29Z</dc:date>
    </item>
  </channel>
</rss>

