估计宏变量的SAS数据集的大小

Lon*_*oul 1 sas

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

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

;
quit;

proc contents data = repos.ajk;
run;
Run Code Online (Sandbox Code Playgroud)

vas*_*sja 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;
Run Code Online (Sandbox Code Playgroud)