Date: Fri, 19 Nov 1999 14:00:20 -0000
Reply-To: Peter Haran <pharan@GANDON.NOSPAM.IE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Haran <pharan@GANDON.NOSPAM.IE>
Organization: EUnet Ireland customer
Subject: Re: Simple problem - but urgent...
There are a number of ways of doing this. You could use
LAG or temporary arrays as follows (Dataset containing the provided table is
called Table1).
data Table1; set Table1;
array tNumVar{1};
if NumVar = . then NumVar = tNumVar{1};
tNumVar{1} = NumVar;
run;
|