LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 11 Oct 2007 15:57:03 +0200
Reply-To:     Andre Wielki <wielki@INED.FR>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Andre Wielki <wielki@INED.FR>
Subject:      Re: Error with unbalanced quotation marks
Comments: To: Hari <excel_hari@YAHOO.COM>
In-Reply-To:  <470E2A08.1090901@ined.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hari, the other solution is

%let text=%str(Joan %'s Report); %put &text; title "&text"; proc print data=sashelp.class; where sex=:'M'; run;

Inside %str to prevent the alone ' having effect on interpreting the flow of sas code it is authorized to use the % just before the quote.

HTH Andre -- André WIELKI INED (Institut National d'Etudes Démographiques) Service Informatique 133 Boulevard Davout 75980 Paris Cedex 20 mél : wielki@ined.fr tél : 33 (0) 1 56 06 21 54


Back to: Top of message | Previous page | Main SAS-L page