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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 444 views
  • 3 likes
  • 3 in conversation