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
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;
|