Date: Thu, 21 Sep 2006 03:56:06 -0700
Reply-To: RolandRB <rolandberry@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RolandRB <rolandberry@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: use scan function?
In-Reply-To: <1158835931.599688.105140@h48g2000cwc.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
Arjen wrote:
> Thanks RolanRB.
>
> I now have this code:
>
> %LET Item="Ascites";
> data &Item.;
> set Dictionary;
> where (question||answer) contains "&Item";
> keep Question Answer rowID;
> run;
>
> My last question is: will this also give me the strings where "ascites"
> is written, i.e. is this code case-sensitive?
>
> Thanks!
>
> Arjen
I think it is case sensitive. You could use index() with capitalization
like this:
if index(upcase(question),%upcase(&Item)) or
index(upcase(answer),%upcase(&Item));
|