v*******g 发帖数: 334 | 1 or I have to write thousands of lines like :
%survival(M1000)
%survival(M1001)
%survival(M1002)
%survival(M1003)
%survival(M1004)
%survival(M1005)
%survival(M1006)
%survival(M1007)
%survival(M1008)
%survival(M1009)
%survival(M1010)
%survival(M1011)
%survival(M1012)
%survival(M1013)
%survival(M1014)
%survival(M1015)
......
%survival(M100000) |
t**i 发帖数: 688 | 2 define another macro fun to loop. |
v*******g 发帖数: 334 | 3 Can anyone give an example?
I have not figured out/ |
g*******y 发帖数: 380 | 4 上楼已经说的很清楚了。
【在 v*******g 的大作中提到】 : Can anyone give an example? : I have not figured out/
|
v*******g 发帖数: 334 | 5 sorry , my one does not work. please check
%do %until N<10000;
%survival;
%end;
why %survival only be execute once?
Thanks
how to write the loop? |
g*******y 发帖数: 380 | 6 %macro loop
do i=1000 to 1000000
%survivial(m%i);
end;
&mend
%loop
自己检查改一下macro里的内容,比如"%".我对macro不熟,懒得查书了。 |
m*********n 发帖数: 413 | 7 why not just add a do-loop in your %survival ?
that might save time compared with calling %survival repeatedly if you wanna
run it for 10000 times. |