Date: Tue, 23 Nov 1999 00:57:54 GMT
Reply-To: diltilia@MY-DEJA.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: diltilia@MY-DEJA.COM
Organization: Deja.com - Before you buy.
Subject: Re: need help
Ruben,
Try this:
data new;
set old;
if index(name,'X') then delete;
run;
(This should delete all the records where "X" appear in variable "name")
-Diltilia
In article <38399B50.E74EAD8C@coruscant.cet.nau.edu>,
"Ruben J. Kovalcik" <rjk2@coruscant.cet.nau.edu> wrote:
> I need some help for a report that's due tomorrow>and would be very
> grateful for some help.
> i'm trying to delete some records that are in my data set by searching
> for a certain character in a character field. example: '101X' will be
> kept, but i don't know how to determine where an X occurs in the
field.
> how can i identify records that have the X in it?
> thanks for any help.Ruben
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
|