Jim / Ian:
It is interesting that one can learn to fool the SAS editor into doing the right
thing. I appreciate the additional knowledge about the %nrstr function. Both
of your solutions worked fine for me.
I believe that for the sake for fast, quick searches, I shall simply perform my
search for the word "Macro" without the % sign. Which only means of course,
that someday, something will come up which will force me to use this technique,
to prove the folly of my quick and dirty ways.
Many happy returns of the season,
---------------------- Forwarded by Diana Noble/IIG/Prudential on 12/15/99 12:50
Jim Groeneveld <J.Groeneveld@ITGroups.com>
Wednesday December 15, 1999 10:24 AM
To: "'WHITLOI1'" <WHITLOI1@WESTAT.COM>
"'Diana Noble'" <email@example.com>
cc: SAS-L@LISTSERV.UGA.EDU (bcc: Diana Noble/IIG/Prudential)
Subject: RE: SAS ver 6.12 Find Command with Special Characters on Win
Diana / Ian,
Shouldn't the code, as Ian states it in his reply: %nrstr(%macro)
instead be: %nrstr(%%macro) ( a double percent sign)
thus escaping the percent character? The double % becomes a single one while
the macro code is being interpreted, but remains unresolved by the %NRSTR
macro function, and the literal text '%macro' is thus available for further
processing, like searching. Or is it one of the other macro functions that
makes doubling the percent sign superfluous? I have been experimenting with
those functions, but what they do exactly and their differences are not yet
completely clear to me. I remember to obtain desired results using the above
Regards - Jim.
Y. Groeneveld, MSc IMRO TRAMARKO tel. +31 412 407 070
senior statistician, P.O. Box 1 fax. +31 412 407 080
head IT department 5350 AA BERGHEM IMRO TRAMARKO: a CRO
J.Groeneveld@ITGroups.com the Netherlands in clinical research
I wish you a merry Christmas and a happy, compatible y
"My job is to keep my computer working." - Jim Groeneveld
> -----Original Message-----
> From: WHITLOI1 [SMTP:WHITLOI1@WESTAT.COM]
> Sent: Monday, December 13, 1999 10:50 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: SAS ver 6.12 Find Command with Special Characters on Win
> The problem is that the editor is too smart, it tries to evaluate macro
> In other words you started to write a macro. You would not have crashed
> '%macro', but
> then you wouldn't find it either. You have to search for
> or get a text editor for editing jobs or wait for version 7/8.
> Ian Whitlock
> ____________________Reply Separator____________________
> Subject: SAS ver 6.12 Find Command with Special Characters on Win NT
> Author: Diana Noble <diana.noble@PRUDENTIAL.COM>
> Date: 12/13/1999 3:56 PM
> Is there any special tricks of the trade to searching with the
> I tried search for %Macro and it glitched up my machine so badly I had to
> the PC.
> Next I tried search for the string in quotes "%Macro". Same result.
> Searching without a % in the search box is fine.
> Any rules that I oughtta know about?