Date: Sun, 27 Sep 1998 14:07:50 +0100
Reply-To: af <armel.francois@WANADOO.FR>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: af <armel.francois@WANADOO.FR>
Organization: Wanadoo - (Client of French Internet Provider)
Subject: Re: enumerating data - urgent!
Try something like ( with your table sorted by X.)
:
Data newfile;
Set Yourfile;
By X;
Retain ctr 0 ;
If first.X then ctr = 0;
ctr + 1;
Output newfile;
RUN ;
|