Hi @Citrine10,
Not knowing your exact set-up, the below untested macro (when called) reads a file and writes it as is to a SAS data set. You'll obviously have to change "default-log-path" to your own, assuming you have one.
As @SASKiwi mentioned, why do you think you need the log files saved as SAS data sets? If this is an access issue then your administrator should be able provide you with what you need.
/* define macro to read a log file and output it to a data set */
%macro log2ds(log_file /* name of log file */
,ds_name /* name of data set */
,log_path = default-log-path /* path to log file */
)
data &ds_name;
infile "&log_path/&log_file";
input;
put _infile_;
run;
%mend log2ds;
/* example call #1 using default path */
%log2ds(validation.txt, log_lib.validation);
/* example call #2 using non-default path */
%log2ds(report.txt, log_lib.report, log_path = non-default-log-path);
Kind regards,
Amir.