Date: Tue, 6 Dec 2005 10:06:32 -0800
Reply-To: "Terjeson, Mark (IM&R)" <Mterjeson@RUSSELL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark (IM&R)" <Mterjeson@RUSSELL.COM>
Subject: Re: %upcase
Content-Type: text/plain; charset="us-ascii"
Evidently some of the invisible quoting that
is embedded in the macro variables has a set
that has the NotResolved inference. e.g.
%let a=begin;
%let c=%str(&a);
%put >&c<;
%let b=%nrstr(&a);
%put >&b<;
%put UPCASE produces: %upcase(&a);
%put UPCASE produces: %upcase(&b);
%put QUPCASE produces: %qupcase(&b);
The tests above indicate that there are some
lingering NR connotations still embedded in the
text string for b but not for a.
Hope this is helpful.
Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investment Group
Russell
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Joan Zhao
Sent: Tuesday, December 06, 2005 9:39 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: %upcase
I'm confused the result of the following little paragraph:
%let a=begin;
%let b=%nrstr(&a);
%put UPCASE produces: %upcase(&b);
%put QUPCASE produces: %qupcase(&b);
Result:
UPCASE produces: begin
QUPCASE produces: &A
Why %upcase doesn't make 'begin' upcase? It seems that after it
interpret the resolved value-&a, it won't do anything else.
I'll appreciate any opinions!