I have a dataset of 7 million observations that I need to split it into 5000 datasets and export into csv file using where condition. I am running loop from 1 to 5000 and creating dataset as:
Loop start(i=0 to i=5000);
data x;
set data y;
where column = i;
run;
proc export data=x outfile ="path" dbms=csv
replace;
quit;
loop end;
But it is taking too much time.
Can anyone suggest how to do it faster?