Date: Mon, 2 Jul 2001 07:49:20 +0200
Reply-To: "Tribius, Heide" <Heide.Tribius@KFW.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Tribius, Heide" <Heide.Tribius@KFW.DE>
Subject: Re: array/do loop question
Content-Type: text/plain; charset="iso-8859-1"
if there is a real possibility that all of the variables are missing, I
would test this before running the do-loop:
if n(of dc1-dc10) then do i=1 to 10;
in SCL (SAS 6.12) this works (just try it in V8/Base):
array code (10) dc1 - dc10;
if 410 in code then icd = 'acute';
else if 411 in code then icd = 'acute';
else if 412 in code then icd = 'nonacute';
else if 413 in code then icd = 'nonacute';
* ......;
else if n(of dc1 - dc10) then icd = 'other';
greetings from Germany. Heide