标题: SQL Tips01 PROC SELECT INTO: [打印本页] 作者: shiyiming 时间: 2003-11-10 13:26 标题: SQL Tips01 PROC SELECT INTO: A good example for proc select into/ dictionary. for your reference.
proc sql;
reset noprint;
select '%let n_'||trim(memname)||'='||trim(put(nobs,best12.-L))||';'
into :doit separated by ' '
from dictionary.tables
where libname = 'SASHELP'
and memtype = 'DATA'
;