- data a;
- set WORK.ABC;
- run;
- proc sql ;
- create table b as
- select count(*) as count,*
- from a
- order by ORG_COL_641298
- ;
- quit;
- data c;
- set b;
- j=int(count/500)+1;
- call symput('j',j);
- run;
- %macro loop;
- %do i=1 %to &j.;
- k=(i-1)*500+1;
- call symput('k',k);
- proc export data=c(firstobs=&k. obs=500);
- outfile="D:\ritter\vocceq&k..txt" ;
- run;
- %end;run;
- %mend loop;
- %loop;



雷达卡







京公网安备 11010802022788号







