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]
Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
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

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 845 views
  • 0 likes
  • 5 in conversation