Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SAS:读取包含特定字符串的所有文件_Sas - Fatal编程技术网

SAS:读取包含特定字符串的所有文件

SAS:读取包含特定字符串的所有文件,sas,Sas,我想读取一组包含特定字符串(xxx*.csv)的文件。因此,如果我的文件夹中有下面的文件,代码应该读入文件1和文件2。 1.xxx_123.csv 2.xxx_456.csv 3.xyz_111.csv 文件名的第一部分已知,但第二部分未知。有人知道我如何在SAS Enterprise Guide(SAS企业指南)中实现这一点吗?您可以创建通配符fileref,但不确定如何在EG中以交互方式执行,但在Base SAS中,代码类似于下面的代码 filename wildxxx "/path/xxx

我想读取一组包含特定字符串(xxx*.csv)的文件。因此,如果我的文件夹中有下面的文件,代码应该读入文件1和文件2。 1.xxx_123.csv 2.xxx_456.csv 3.xyz_111.csv


文件名的第一部分已知,但第二部分未知。有人知道我如何在SAS Enterprise Guide(SAS企业指南)中实现这一点吗?

您可以创建通配符fileref,但不确定如何在EG中以交互方式执行,但在Base SAS中,代码类似于下面的代码

filename wildxxx "/path/xxx*.csv" ; data readin ; infile wildxxx /* + infile options */; /* input statement */ run ; 文件名wildxxx“/path/xxx*.csv”; 数据读取; 填充wildxxx/*+填充选项*/; /*输入语句*/ 跑