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 (November 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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;


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