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 (December 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Joan Zhao <hongzl@OPTONLINE.NET>
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!


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