LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.?


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