Babloo, he must fundamental one. The admin con configure to store SP logging files content. How the data for ARM can be stored directly to a tabel (exteren dbms / sas-share) is described in this nice blog post at: http://blogs.sas.com/content/sgf/2015/09/30/part-1-auditing-data-access-who-did-what-and-when/ There is no need to develop something for functionality that can be configured. There is no need to use macro-processing only some fixed/moving values. The PID number is part of filename as setup in the mentioned config-files. As it is a randomnumber it shoudl be masked/wild-carded. See: %let filedate=%sysfunc(putn("&sysdate9"d-1,yymmdd10.)); %put &filedate; /* this date lay-out can be put in the source later */ data &data; set log.output_file; length fname $400; infile "/usr/sas/sas_config/Lev1/SASApp/StoredProcessServ?er/Logs/SASApp_STPServer_2015-10-04_*.log" dsd truncover END = end_of_file LRECL=32000 filename=fname ; input var : $ 3000.; var1 = _infile_; if var1 = :'201' then do; Date_TimeStamp= scan(var1,1," "); Status = scan(var1,2," "); Processid = scan(var1,3," "); userid = scan(var1,4," "); Details = scan(var1,-1,'-'); output; end;drop var var1; run; It will read all log files on that fixed date putting that in a dataset witt the fname having the switch for all read physical files. Why overcomplicating that simple approach? Reread the infile statement for the filename option. http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#n1rill4udj0tfun1fvce3j401plo.htm
... View more