SAS获取列名及相关信息

ods trace on;
proc contents data = lib.data
ods output Variables;
run;
ods trace off;
数据字典方法
proc sql;
create table b as
select distinct * from dictionary.columns
where libname = 'DATA' /*大写*/
and memname = 'MEM';
quit;


猜你喜欢

转载自blog.csdn.net/AaronPaul/article/details/80916668