Hi @Kurt_Bremser , the problem with using the istat-command way is, that you cannot give a wildcard-search for ALL KeyAction Logs (" Web/Logs/SASServer2_1/SASWebReportStudio4.4_KeyActions.log* "), because the command expects a specific, unique path to ONE file. Therefore, I will have to iterate through all the KeyActions-Logfiles... Nevertheless, the command and the transformation of the feedback of istat-command works: %LET l_cmd = %nrbquote(istat /please/put/your/path/here/config/LevX/Web/Logs/SASServer2_1/SASWebReportStudio4.4_KeyActions.log | grep modified | awk '{print $3, $4, $5, $6, $7, $8}');
/*set up pipe*/
filename oscmd pipe "&l_cmd.";
data work.test ;
infile oscmd truncover;
input string $50. ;
format timestamp datetime25. date date9. time time8.;
date = input(scan(string,3)||scan(string,2)||scan(string,6),date9.);
time = input(scan(string,4), time8.);
timestamp = dhms(date, hour(time), minute(time), second(time));
run;
... View more