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 (December 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 28 Dec 2007 14:37:27 -0800
Reply-To:     Patrick <patrick.matter@GMX.CH>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Patrick <patrick.matter@GMX.CH>
Organization: http://groups.google.com
Subject:      Re: counting when condition appears
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

And I would also use my chance and add a unique ID for this dataset (eg: DSID):

data out; set in; by id; DSID=_n_; if first.id then flag=0; flag+dx; run;


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