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 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 19 Mar 2002 11:10:02 -0500
Reply-To:   Howard_Schreier@ITA.DOC.GOV
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Howard_Schreier@ITA.DOC.GOV
Subject:   Re: oscillator cruve
Content-Type:   text/plain; charset=ISO-8859-1

Tested code:

data out; set in; by aa2 notsorted; if first.aa2 then countup + 1; drop countup; if first.aa2 or lag(first.aa2) then do; aa3 = aa1; aa4 = countup; end; run;

On Tue, 19 Mar 2002 16:30:00 +0800, =?big5?q?Morris?= <soaring-cato@YAHOO.COM.TW> wrote:

>Dear List Members: > >I have some question,i want to creat the another one >from the "aa1" and "aa2" variable (aa1 and aa2 are >given) > >aa2 variable compose of "+"and "-" ,the aa3 variable >that i want is always the first and second observation >of "+" and "-" by each row group , and then creat aa4 >form aa3 > >For example, > > aa1 aa2 aa3 aa4 >22.10 + 22.10 1 >22.05 + 22.05 1 >21.72 + . . >22.63 - 22.63 2 >22.97 - 22.97 2 >22.90 - . . >23.34 - . . >23.46 - . . >24.15 - . . >25.28 + 25.28 3 >25.95 + 25.95 3 >25.89 - 25.89 4 >26.11 - 26.11 4 >25.71 - . . >25.69 - . . >25.31 + 25.31 5 >25.78 + 25.78 5 >25.53 + . . >25.95 - 25.95 6 >25.91 - 25.91 6 > >i was wondering if anyone could tell me how to do >this by sas ~~!! > >many thanks, > >morris hu > >----------------------------------------------------------------- >< ¨C¤Ñ³£ Yahoo!©_¼¯ > www.yahoo.com.tw


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