Date: Wed, 12 Jun 2002 16:11:27 -0400
Reply-To: Rose <myr_rose@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Rose <myr_rose@YAHOO.COM>
Subject: repost : how to get a non zero value for each obs
sorry everyone,
i copied a incorrect data set, here is the correct data set:
data abc;
input subject mon1 mon2 mon3 mon4 ;
datalines;
1 0 0 2 0
2 2 0 5 0
3 4 2 7 0
4 0 1 5 0
5 2 3 . 7
;
run;
the result shoud be :
subject mon1 mon2 mon3 mon4 enter
1 0 0 2 0 2
2 2 0 5 0 2
3 4 2 7 0 4
4 0 1 5 0 1
5 2 3 . 7 2
but Edward Heaton really give a correct answer, but it is a little bit hard
to understand, can somebody get it plainly? thanks a lot.
|