将文件夹内容打印到SAS中的文本文件
Printing folder contents to a text file in SAS
有没有办法让 SAS 将文件夹的内容打印到 .txt 文件中。
作为参考,这是如何使用 DOS 来完成的。
https://www.groovypost.com/howto/microsoft/list-directory-contents-to-a-printable-and-readable-txt-file/
当然 - 您可以使用这个宏:https://core.sasjs.io/mp__dirlist_8sas.html
用法:
%mp_dirlist(path=/some/location,outds=work.contents)
data _null_;
set work.contents;
file "/some/file.txt";
put filepath;
run;
有没有办法让 SAS 将文件夹的内容打印到 .txt 文件中。 作为参考,这是如何使用 DOS 来完成的。 https://www.groovypost.com/howto/microsoft/list-directory-contents-to-a-printable-and-readable-txt-file/
当然 - 您可以使用这个宏:https://core.sasjs.io/mp__dirlist_8sas.html
用法:
%mp_dirlist(path=/some/location,outds=work.contents)
data _null_;
set work.contents;
file "/some/file.txt";
put filepath;
run;