由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - How to search all data files in a folder?
相关主题
请教大家一个SAS使用mapped drive的问题二个包子答谢解决问题的回贴
sas question!!!头脑发热的时候确实不能写EMAIL
SAS help : Proc dataset笨人sas/excel 问题
求教 SAS base 123 Q 16求帮助:excel数据转csv和sas的读取
请问SAS中如何将work中形成的文件拷贝出来 很多的请问SAS BASE考试中12题的正确答案是什么?
[SAS] Efficient way for subsetting data?SAS 转 Excel
【包子】生成RAW SAS DATASET问题请帮看一下这个简单的code为什么不work?
SAS format file--- when I load the file 急~~~谢谢~~~windows下用batch submit 两个SAS code文件
相关话题的讨论汇总
话题: files话题: search话题: folder话题: data话题: sas
进入Statistics版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
I need to search all data files in a folder, and give
the names the data files which contain a string.
Does anybody has any idea?
One way is to save all SAS datasets to Excel files in
another folder, then search it in Excel.
My question is if it is doable in SAS along.
D******n
发帖数: 2836
2
contain a specified string or contain only one string?
which situations do u mean?

【在 c**********e 的大作中提到】
: I need to search all data files in a folder, and give
: the names the data files which contain a string.
: Does anybody has any idea?
: One way is to save all SAS datasets to Excel files in
: another folder, then search it in Excel.
: My question is if it is doable in SAS along.

c**********e
发帖数: 2007
3
Of course, a specified string, say "Banana".
There are many SAS datasets. The search will help me
to find the dataset.

【在 D******n 的大作中提到】
: contain a specified string or contain only one string?
: which situations do u mean?

d********h
发帖数: 2048
4
yes, you can. I did that long time ago. At that time, I used a macro to
search 1000 files to get one data.
p********a
发帖数: 5352
5
data banana1;
run;
proc sql;
select memname from dictionary.members
where libname='WORK' and find(upcase(memname),'BANANA');
quit;
D******n
发帖数: 2836
6
in linux
grep Banana * -l

【在 c**********e 的大作中提到】
: Of course, a specified string, say "Banana".
: There are many SAS datasets. The search will help me
: to find the dataset.

c**********e
发帖数: 2007
7
Thanks, but the procedure only searches the names of all data file.
My question is to search the contents of all files. Do you have
some way to do it? Thanks a lot.

【在 p********a 的大作中提到】
: data banana1;
: run;
: proc sql;
: select memname from dictionary.members
: where libname='WORK' and find(upcase(memname),'BANANA');
: quit;

1 (共1页)
进入Statistics版参与讨论
相关主题
windows下用batch submit 两个SAS code文件请问SAS中如何将work中形成的文件拷贝出来 很多的
A problem on PROC SQL[SAS] Efficient way for subsetting data?
有人对SAS server熟吗?【包子】生成RAW SAS DATASET问题
A SAS problemSAS format file--- when I load the file 急~~~谢谢~~~
请教大家一个SAS使用mapped drive的问题二个包子答谢解决问题的回贴
sas question!!!头脑发热的时候确实不能写EMAIL
SAS help : Proc dataset笨人sas/excel 问题
求教 SAS base 123 Q 16求帮助:excel数据转csv和sas的读取
相关话题的讨论汇总
话题: files话题: search话题: folder话题: data话题: sas