<?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 Macro issue? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639234#M190106</link>
    <description>&lt;P&gt;So, this is the code from 'Beginning Sas Programming' (copied and pasted)&lt;/P&gt;&lt;PRE&gt;dm log 'clear'; dm output 'clear';&lt;BR /&gt;&lt;BR /&gt;/*create fibonacci table; create first 2 Fibonacci numbers */&lt;BR /&gt;proc sql;&lt;BR /&gt;create table fibonacci (n num,f num);&lt;BR /&gt;&lt;BR /&gt;insert into fibonacci &lt;BR /&gt;values (0,0)&lt;BR /&gt;values (1,1);&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;/* get the last 2 Fibonacci numbers*/&lt;BR /&gt;proc sql outobs=2;&lt;BR /&gt;  create table last2 as&lt;BR /&gt;  select * from fibonacci order by n descending;&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;It's not producing any output, and it's giving me the message "&lt;/P&gt;&lt;PRE class="sasLog"&gt; NOTE: The quoted string currently being processed has become more than 262 bytes long.  You might have unbalanced quotation marks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;So.. Google tells me from these forums that it's an issue with the macro not being '%mend' - ed..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would the specific fix be, and why wouldn't the code from a book work, assuming he copied and pasted functional code?&lt;/P&gt;</description>
    <pubDate>Sun, 12 Apr 2020 00:23:55 GMT</pubDate>
    <dc:creator>TimmySauce</dc:creator>
    <dc:date>2020-04-12T00:23:55Z</dc:date>
    <item>
      <title>Macro issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639234#M190106</link>
      <description>&lt;P&gt;So, this is the code from 'Beginning Sas Programming' (copied and pasted)&lt;/P&gt;&lt;PRE&gt;dm log 'clear'; dm output 'clear';&lt;BR /&gt;&lt;BR /&gt;/*create fibonacci table; create first 2 Fibonacci numbers */&lt;BR /&gt;proc sql;&lt;BR /&gt;create table fibonacci (n num,f num);&lt;BR /&gt;&lt;BR /&gt;insert into fibonacci &lt;BR /&gt;values (0,0)&lt;BR /&gt;values (1,1);&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;/* get the last 2 Fibonacci numbers*/&lt;BR /&gt;proc sql outobs=2;&lt;BR /&gt;  create table last2 as&lt;BR /&gt;  select * from fibonacci order by n descending;&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;It's not producing any output, and it's giving me the message "&lt;/P&gt;&lt;PRE class="sasLog"&gt; NOTE: The quoted string currently being processed has become more than 262 bytes long.  You might have unbalanced quotation marks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;So.. Google tells me from these forums that it's an issue with the macro not being '%mend' - ed..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would the specific fix be, and why wouldn't the code from a book work, assuming he copied and pasted functional code?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 00:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639234#M190106</guid>
      <dc:creator>TimmySauce</dc:creator>
      <dc:date>2020-04-12T00:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639248#M190119</link>
      <description>&lt;P&gt;This code runs perfectly fine. You must have an unbalanced quotation mark left from other code you previously tried running within your SAS session. Close your SAS and open it again.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 02:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639248#M190119</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-04-12T02:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639254#M190125</link>
      <description>&lt;P&gt;There is no macro definition (%macro) in your code, so you have unbalanced quotes in code submitted before that.&lt;/P&gt;
&lt;P&gt;Restart your SAS session.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 04:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639254#M190125</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-12T04:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639363#M190201</link>
      <description>Thank you, gentlemen. I found what I was doing wrong.</description>
      <pubDate>Sun, 12 Apr 2020 20:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-issue/m-p/639363#M190201</guid>
      <dc:creator>TimmySauce</dc:creator>
      <dc:date>2020-04-12T20:59:11Z</dc:date>
    </item>
  </channel>
</rss>

