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 (August 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 >


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