简体   繁体   English

SAS如何检索以特定字符串为前缀的数据集列表

[英]SAS how do i retrieve a list of datasets that are prefixed with a certain string

in sas, I have a bunch of datasets in one of my libraries 在sas中,我的一个库中有一堆数据集

ie: 即:

tmp_dataset_a
tmp_dataset_b
tmp_dataset_c
tmp_dataset_d
dataset1
dataset2

How do I extract a list of the datasets prefixed with tmp ? 如何提取以tmp开头的数据集列表? I would like to store this list so I can access it 我想存储此列表,以便可以访问它

Use the SASHElP.VTABLE dictionary table. 使用SASHElP.VTABLE字典表。 It stores metadata about the SAS tables, including names. 它存储有关SAS表的元数据,包括名称。

data want;
set sashelp.vtable;
where memname like 'tmp%';
run;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM