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 (March 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 17 Mar 2004 10:48:31 -0800
Reply-To:   seema <wormpai@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   seema <wormpai@HOTMAIL.COM>
Organization:   http://groups.google.com
Subject:   Please help: SAS changing my data
Content-Type:   text/plain; charset=ISO-8859-1

Hi,

I have a dataset which contains 2 fields (and some others) modelid and mmodelid. Till this point (and I checked this before embarking on this step) both modelid and mmodelid take values between 1 and 10 (albeit different values within the same range). At this step, I need both the variabels to take the same value (specifically the value that mmodelid has taken upto this point). So I perform the following step:

data trial; set fresh4(drop=modelid); modelid=mmodelid; proc sort data=trial; by modelid nweek; run;

However while this works for all values of mmodelid except the last value 10. Whenever it encounters a 10 it seems to change it to a 1. Any ideas why? This is completely driving me nuts.

Thanks in advance, Seema


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