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 (April 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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