SAS列出并将指定库下的所有表名存储到表中 [英] SAS list and store all tables name under specify library to a table

查看:55
本文介绍了SAS列出并将指定库下的所有表名存储到表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在库测试"下,我有 5 个数据集.如何列出所有表名?

proc datasets lib = work;放弃;跑步;

虽然我想进一步使用这些信息.就像表名一样.

谢谢

解决方案

使用 SQL dictionary.tables 视图...

<前>进程 sql ;创建表 mytables 作为选择 *来自 dictionary.tables其中 libname = 'WORK'按 memname 排序;放弃 ;

Under library "testing", i have 5 datasets. How can i list all tables names?

proc datasets lib = work; quit; run;

While i would like to have further usage of the information. like the tables name.

Thanks

解决方案

Use the SQL dictionary.tables view...

proc sql ;
  create table mytables as
  select *
  from dictionary.tables
  where libname = 'WORK'
  order by memname ;
quit ;

这篇关于SAS列出并将指定库下的所有表名存储到表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆