Date: Mon, 23 Sep 2002 16:40:11 -0400
Reply-To: Kevin Viel <kviel@EMORY.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Kevin Viel <kviel@EMORY.EDU>
Content-Type: text/plain; charset="iso-8859-1"
Venky wrote:
> Two things:
> (1) the summation statements are causing an automatic retain across IDS
> (e.g. vx(i) + 1). The retain should occur only within IDs and should not
be
> carried over to the next.
DOH! I should have just gone with creating a flag <g>. You are correct. I
would need to add:
do i=1 to dim(vx);
vx(i)=.;
end;
> (2) The vname function captures the name of the variable in upper case.
> Therefore, when you compare the original variable with the result of the
> vname function, it is better to upcase the original, although you seem to
be
> capturing the correct result.
Possibly. If the VALIDVARNAME=UPCASE this may be true. On my system it is
set to V7. Good point at any rate.
Regards,
Kevin
____________________________________
Kevin Viel
Department of Epidemiology
Rollins School of Public Health
Emory University
Atlanta, GA 30329