BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Kurt_Bremser
Super User

@Abelp9 wrote:
...

you have to enter them that way literally, with quotes and everything.

 

In the world that I live and work in, the programmer has control over such details, and can fix sub-optimal code.

 

The proper solution: don't have quotes in macro variables in the first place.

Abelp9
Quartz | Level 8
I need them because everything is connected to SAP and millions of other details
Ksharp
Super User
%let producto = '12345','54321';
%let product2 = %sysfunc(compress(%bquote(&producto),%str(%')));

%put &=producto &=product2 ;

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!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 17 replies
  • 4288 views
  • 12 likes
  • 5 in conversation