RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
DO Loop
DATA salary; /*define variables*/ raise=0.1; salary=50000; year=1; /*do loop*/ DO year=1 to 20 by 2; salary + salary*raise; output; /*generates an observation for each iteration of the do loop, optional*/ END; RUN;
Macro do loop
%macro doloop; %do age=11 %to 15 %by 2; title Age=&age.; proc print data=sashelp.class(where=(age=&age.)); run; %end; %mend; %doloop;
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website