Date: Wed, 5 Dec 2001 18:27:21 -0800
Reply-To: ywr1 <yeon_rhee@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: ywr1 <yeon_rhee@HOTMAIL.COM>
Organization: http://groups.google.com/
Subject: how to write nested do-loops..in IML or MACRO?
Content-Type: text/plain; charset=ISO-8859-1
hi all,
thanks for reading my message.
all i want to do is...
to write nested do-loops.
the size of do-loops depends on a numeric variable, A.
the value of the variable A can be any number.
it can be 2, 3, 20,and even 1000.
for instance, let's say A=2.
what i expect to have is..
do i=1 to 3;
do j=4 to 10;
*statement*;
end;
end;
if A=4 then...
do i=1 to 3;
do j=4 to 10;
do k=11 to 15;
do L=16 to 20;
*statement*;
end;
end;
end;
end;
how can i do this..in SAS/IML or SAS/MACRO.?
|