LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (July 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: "clemmaj@U.WASHINGTON.EDU" <clemmaj@U.WASHINGTON.EDU>
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


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