Hi all, I have a huge dataset of 1000000 observations which we need to analyse and the analysts are adamant on using excel. So I need to create smaller subsets of this. I know of firstobs and obs options but somehow using that in a macro is not working for me. I have used following code but its not producing correct output so far. Any help is really appreciated. %macro M1(fobs,ob,ds); options fobs=&fobs obs=&ob; data &ds; set have; run; %mend; %m1(1,10000,new_1) %m1(10001,10000,new_2) %m1(20001,10000,new_3) %m1(30002,10000,new_4) %m1(40003,10000,new_5) %m1(50004,10000,new_6) %m1(60005,10000,new_7) %m1(70006,10000,new_8) %m1(80007,10000,new_9) %m1(90008,10002,new_10) Any help is appreciated. also, is there any proc sql help available for such task
... View more