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]
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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