Date: Mon, 20 Aug 2007 12:11:04 -0400
Reply-To: Muthia Kachirayan <muthia.kachirayan@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Muthia Kachirayan <muthia.kachirayan@GMAIL.COM>
Subject: Re: SAS Datastep Help
In-Reply-To: <200708201531.l7KCY4o7012804@malibu.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1
Tamarah,
The LOG, if given, will help in finding reasons.
Muthia Kachirayan
On 8/20/07, Tamarah Smith-Dyer <tfdyer@gmail.com> wrote:
>
> To anyone who can help,
>
> I have been attempting run the datastep below, and it will not drop
> subjects with year=2006???
>
> DATA DATA;
> SET DATA;
> IF YEAR NE 2006 THEN OUTPUT;
> RUN;
>
> I have tried several different ways of approaching the problem (using year
> ne 2006, putting 2006 in quotes- even though it is formatted as numeric,
> creating a new var that equals 1 if year =2006, else equals 0 and using
> this new var in the output statement, etc.).
>
> Does anyone have any suggestions as to why this code may not be leading to
> the desired outcome, or how to overcome the problem??? I have looked in
> my SAS books, and racked my brain, but I cannot come up with why this may
> not be working, let alone a solution.
>
>
> Much thanks!
> Tamarah
>
|