I am trying to run a bat file from SAS EG and bat file has a list of SAS programs. The bat file/SAS program seems to be executing but the SAS program doesnt create a log file. Is there any way a log file can be created?
data _null_;
call system("T:\Test_Bat.bat");
x "T:\Test_Bat.bat";
run;
%sysexec("T:\Test_Bat.bat");
run;
You'd need to open up the bat file, and add a log destination to the line that invokes SAS. I think the syntax is
-log "C:\whatever\mylog.log"
Tom
Try this one . after executing , open log.txt x "T:\Test_Bat.bat > c:\temp\log.txt ";
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.