DATA Step, Macro, Functions and more

Single quotes and double quote

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Single quotes and double quote

[ Edited ]

Hello,

what is the difference between single quote and double quote??

i know the one in macros..but is there any other difference between them????

 


Accepted Solutions
Solution
‎07-07-2016 07:40 AM
Super User
Posts: 19,855

Re: Single quotes and double quote

Posted in reply to vinit_correia

Other than resolving macro variables not really in SAS. 

 

The he only other time it becomes useful is,to mask one or the other. 

 

Ie

 

var = " There's an apostrophe in my variable";

View solution in original post


All Replies
Solution
‎07-07-2016 07:40 AM
Super User
Posts: 19,855

Re: Single quotes and double quote

Posted in reply to vinit_correia

Other than resolving macro variables not really in SAS. 

 

The he only other time it becomes useful is,to mask one or the other. 

 

Ie

 

var = " There's an apostrophe in my variable";

Occasional Contributor
Posts: 9

Re: Single quotes and double quote

got it...thanks

 

Super User
Posts: 19,855

Re: Single quotes and double quote

Posted in reply to vinit_correia

One other case - opposite of macro, ir you have a percent or ampersand you don't want SAS to interpret as a macro/macro variable then use single quotes. 

Occasional Contributor
Posts: 9

Re: Single quotes and double quote

got it...thanks for help

 

☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 409 views
  • 1 like
  • 2 in conversation