DATA Step, Macro, Functions and more

Quotes while referencing

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,040
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: 333

Re: Quotes while referencing

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

you HAVE to use double quote.

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

Re: Quotes while referencing

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.

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

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