BookmarkSubscribeRSS Feed
frisco
Calcite | Level 5
Chris, I just read your blog entry on nerds and you mentioned that a hypothetical holiday greeting card might say %let peace='on Earth';
Of course, I can't help asking, why the quotes?
4 REPLIES 4
Doc_Duke
Rhodochrosite | Level 12
A nerd's holiday card must be syntactically correct. In SAS, text constants are enclosed in quotes.....
LinusH
Tourmaline | Level 20
Syntactically, text constants assigned to a macro variable doesn't have to be enclosed in quotes. It's more a question of how you will use the macro variable later on...

/Linus
Data never sleeps
ChrisHemedinger
Community Manager
Actually, Cynthia Z suggested a true geek might write:

[pre]
options symbolgen;
%let what = peace;
%let where = &&&what;
%let how = And let it begin with me.;

%put Let there be &what &where.. &how;
[/pre]
SAS Hackathon registration is open! Build your skills. Make connections. Enjoy creative freedom. Maybe change the world.
Cynthia_sas
SAS Super FREQ
Of, course, the code assumes that
[pre]
%let peace = on Earth;
[/pre]

has already been entered into the Global System Table with a %LET statement.

cynthia

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!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 4 replies
  • 762 views
  • 0 likes
  • 5 in conversation