Hi,
Does anyone have SAS code that retrieves the file attibutes of all files/folders in a directory?
I'm particularly interested in date modified and owner name.
Thank you.
Create a named pipe and get that from the directory listing? Exact code depends on OS, but the concept should be the same.
filename myfile pipe "dir C:\temp\ /q"; */q gets owner in windows;
data mystuff;
infile myfile lrecl=500;
input (whatever you are interested in);
run;
Thank you for the reply.
I ran the following code:
http://support.sas.com/kb/38/279.html
For "owner" I only see:
BUILTIN\Administrators
8
1
2
5
Do you know what this is referring to?
It would help if you posted all of the code that you ran.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Join SUGA
Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.
Find more tutorials on the SAS Users YouTube channel.