Date: Wed, 16 Apr 2008 04:41:51 -0400
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: How to assign a string which contains ' and & etc
If you want the 's to be part of the macro variable, you could also try:
call symput("mymacrovar","'"!!trim(left(abc))!!"'");
Gerhard
On Wed, 16 Apr 2008 04:19:20 -0400, Richard A. DeVenezia
<rdevenezia@WILDBLUE.NET> wrote:
>sasguy wrote:
>> Hi,
>> I have a string like this
>> abc='sdjkldl&kdld,,,';
>> i need to assign to macro variable
>> how can i do it
>> Thanks
>> in
>> advance
>
>Pretty slim in the statement of problem.
>
>You might want:
> call symput ('mymacrovar', abc);
>
>But, you might want:
> %let mymacrovar = %nrstr (abc='sdjkldl&kdld,,,';) ;
>
>--
>Richard A. DeVenezia
|