我试图将SAS数据集的大小放入宏变量中。虽然无法获得良好的提示。我正在考虑的选项如下:
proc sql;
select *
from dictionary.tables
where libname = "REPOS"
;
quit;
proc contents data = repos.ajk;
run;
答案 0 :(得分:5)
proc sql noprint;
select put(filesize/1024/1024, 16.2 -L) into :sizeMB from dictionary.tables
where libname = 'MYLIB'
and memname = 'MYTABLE'
;
quit;
%put &sizeMB;