LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 24 May 2003 08:23:07 -0700
Reply-To:     Stig Eide <stigeide@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Stig Eide <stigeide@YAHOO.COM>
Organization: http://groups.google.com/
Subject:      Re: Removing Trailing Blanks from a Macro variable and Index
Content-Type: text/plain; charset=ISO-8859-1

The easiest way to remove trailing blanks is: %let mvar=&mvar; Hope this helps! Stig

patricia.simon@QUANTUM.COM (Patricia Simon) wrote in message news:<200305232148.h4NLm2n20026@listserv.cc.uga.edu>... > Hi, > I created a macro variable, IndepVar, that is concatenated with an Index > counter, i. When I refer to the macro variable in a chart title inside > proc gplot, it displays about 20 trailing blanks despite the trim > statement. How do I remove the trailing blanks? > Thank you, > Patty > > data _null_; > set MaxGraphVars end=eof; > i+1; > ii=left(put(i,2.)); > call symput (trim('IndepVar'||ii),_SOURCE_); > if eof then call symput('Total',ii); > run; > > %macro CreateCharts; > > %do i=1 %to &Total; > > proc gplot data=rawdata uniform; > plot &&DepVar&i * &&IndepVar&i; > title2 "Raw Data: Varying &&IndepVar&i"; > run; > quit; > %end; > %mend;


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