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 (April 2012, 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 Apr 2012 14:24:00 -0400
Reply-To:     Randall Powers <powers_r@BLS.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randall Powers <powers_r@BLS.GOV>
Subject:      using a 1x1 vector in PROC IML as an index in a do loop

Hello SAS Folks,

I have a 1x1 vector in PROC IML. Let's call it B5.

B5 contains a numeric value. What I'd like to do is create a do loop that whose indexes are 1 to the value of B5.

%Do q=1 %to (value of B5); *more code*; end;

How would I do this?

Thanks!


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