1

我正在尝试将 SAS 数据集的大小放入宏变量中。虽然无法得到很好的提示。我正在考虑的选项如下:

proc sql;
    select *
    from dictionary.tables
    where libname = "REPOS"

;
quit;

proc contents data = repos.ajk;
run;
4

1 回答 1

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;
于 2013-09-12T08:21:45.920 回答