PING
0.9
Statistical data handling and processing in production environment
|
Generate a dataset with the names of all files in a directory or directory tree. Wildcards may be used to specify the files to be included.
dir
: a directory full path, or file group (possibly containing wildcards) with full path;recur
: (option) flag of boolean type (yes/no
) set to yes
when search will be recursively performed in subdirectories;lib
: (option) name of the output library; by default: empty, i.e. WORK
is used.dsn
: (option) output dataset created in lib
library; this dataset contains three fields, respectively:
base
for file name), andpath
for absolute path (path separator is slash '/'), andlast
for last modification data as SAS datetime;when not set, a default dataset WORK.dir_ls
is created with all the fields above.
The call to the following:
stores in the WORK.test
dataset the list (base
+path
+last
) of CSV files present in the dir
folder.
Run macro %_example_dir_ls
for more examples.
find
of the given directory.