DATA Step, Macro, Functions and more

Quotes while referencing

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,041
Accepted Solution

Quotes while referencing

Hi,

While we reference a macro variable cant we keep in single Quotes????

'&Date' D

"&Date" D

I dint get the result when I put in Single Quotes!!!!!

Thanks


Accepted Solutions
Solution
‎06-11-2013 01:56 PM
Super Contributor
Posts: 334

Re: Quotes while referencing

Posted in reply to robertrao

There is a difference in SAS between single and double quotes. Double quotes allow macro variables to be read within them while single do not.

EJ

View solution in original post


All Replies
Super Contributor
Posts: 1,636

Re: Quotes while referencing

Posted in reply to robertrao

you HAVE to use double quote.

Solution
‎06-11-2013 01:56 PM
Super Contributor
Posts: 334

Re: Quotes while referencing

Posted in reply to robertrao

There is a difference in SAS between single and double quotes. Double quotes allow macro variables to be read within them while single do not.

EJ

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 141 views
  • 3 likes
  • 3 in conversation