<?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 create macro var-error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-macro-var-error/m-p/663812#M198233</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;x is a char column.&lt;/P&gt;
&lt;P&gt;When I run this code I get an error&lt;/P&gt;
&lt;P&gt;ERROR: Open code statement recursion detected.&lt;/P&gt;
&lt;P&gt;What is the reason please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select distinct x into:month_list separated by '+'
from ttt
;
quit;
%put &amp;amp;month_list;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 21 Jun 2020 08:14:42 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2020-06-21T08:14:42Z</dc:date>
    <item>
      <title>create macro var-error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-macro-var-error/m-p/663812#M198233</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;x is a char column.&lt;/P&gt;
&lt;P&gt;When I run this code I get an error&lt;/P&gt;
&lt;P&gt;ERROR: Open code statement recursion detected.&lt;/P&gt;
&lt;P&gt;What is the reason please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select distinct x into:month_list separated by '+'
from ttt
;
quit;
%put &amp;amp;month_list;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jun 2020 08:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-macro-var-error/m-p/663812#M198233</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-06-21T08:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: create macro var-error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-macro-var-error/m-p/663813#M198234</link>
      <description>&lt;P&gt;Bit hard to say if the error gets thrown by the code you show us without seeing the SAS Log.&lt;/P&gt;
&lt;P&gt;You could try:&lt;/P&gt;
&lt;PRE&gt;%put %nrbquote(&amp;amp;month_list);&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jun 2020 08:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-macro-var-error/m-p/663813#M198234</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-06-21T08:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: create macro var-error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-macro-var-error/m-p/663824#M198239</link>
      <description>&lt;P&gt;Please supply your dataset in a data step with datalines. I suspect you have macro triggers in variable x.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 10:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-macro-var-error/m-p/663824#M198239</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-21T10:21:54Z</dc:date>
    </item>
  </channel>
</rss>

