BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
TimmySauce
Fluorite | Level 6

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?

1 ACCEPTED SOLUTION

Accepted Solutions
LeonidBatkhan
Lapis Lazuli | Level 10

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.

View solution in original post

3 REPLIES 3
LeonidBatkhan
Lapis Lazuli | Level 10

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.

TimmySauce
Fluorite | Level 6
Thank you, gentlemen. I found what I was doing wrong.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 470 views
  • 3 likes
  • 3 in conversation