제공 한 컨텍스트에서 세분화가 약간 모호합니다. 그하여이 분할 데이터 세트을 생성하는 것을 의미하는 경우, Prod
의 고유 값과 연관된 각각은 관찰, 당신은 here의 코드를 사용할 수 있습니다
/* define which libname.member table, and by which column */
%let TABLE=sashelp.cars;
%let COLUMN=origin;
proc sql noprint;
/* build a mini program for each value */
/* create a table with valid chars from data value */
select distinct
cat("DATA out_",compress(&COLUMN.,,'kad'),
"; set &TABLE.(where=(&COLUMN.='", &COLUMN.,
"')); run;") into :allsteps separated by ';'
from &TABLE.;
quit;
/* macro that includes the program we just generated */
%macro runSteps;
&allsteps.;
%mend;
/* and...run the macro when ready */
%runSteps;
이 아마 코멘트보다는 같은 더 적합 답변. – Quentin