So, this is the code from 'Beginning Sas Programming' (copied and pasted)
dm log 'clear'; dm output 'clear';
/*create fibonacci table; create first 2 Fibonacci numbers */
proc sql;
create table fibonacci (n num,f num);
insert into fibonacci
values (0,0)
values (1,1);
quit;
/* get the last 2 Fibonacci numbers*/
proc sql outobs=2;
create table last2 as
select * from fibonacci order by n descending;
quit;
It's not producing any output, and it's giving me the message "
NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks.
So.. Google tells me from these forums that it's an issue with the macro not being '%mend' - ed..
What would the specific fix be, and why wouldn't the code from a book work, assuming he copied and pasted functional code?
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.
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.
There is no macro definition (%macro) in your code, so you have unbalanced quotes in code submitted before that.
Restart your SAS session.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.