Help using Base SAS procedures

%put problem

Reply
Regular Contributor
Posts: 222

%put problem


Hello everyone;

I have a problem when I run the code:

%put This is  Tom's car;

Please advise.

Thanks!

Respected Advisor
Posts: 3,799

Re: %put problem

Posted in reply to Mike_Davis

You need to "macro" quote the unmatched single quote.

 

192 %put This is Tom%nrbquote(')s car;

This is Tom's car

Super User
Posts: 10,048

Re: %put problem

Posted in reply to Mike_Davis

%put %str(This is  Tom%'s car) ;

This is Tom's car

Ksharp

Ask a Question
Discussion stats
  • 2 replies
  • 162 views
  • 6 likes
  • 3 in conversation