Start by removing the quit statement.
Would replace the macro loops with normal loops:
%macro m_sinx(nx, baseratio, noiseratio);
data temp_simu_sin_od;
do i = 1 to &nx.;
ybase = (round(ranuni(i) ,0.1) + 0.1) * &baseratio.;
do x = &stind. to &endind.;
tick = i;
ynoise = (ranuni(i) - 0.5) * &noiseratio. * 2 * ranuni(x);
y = ybase * sin(x / 200) + (ranuni(i) - 0.5) * &noiseratio. * 2 * ranuni(x);
ind = x;
output;
end;
end;
drop i x;
run;
%mend;
Log:
50 %m_sinx(300, 20, 0.5);
NOTE: The data set WORK.TEMP_SIMU_SIN_OD has 150300 observations and 5 variables.
NOTE: Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
real time 0.03 seconds
cpu time 0.03 seconds
... View more