12-01-2014 01:42 PM
I have created a Windows Batch file to execute the sas code, I want to append the DateTimestamp to the Log file name. Like "Nameatetime.Log"
I have created below command in batch file.
"C:\Program Files\SAS\SASFoundation\9.2\sas.exe" -autoexec 'C:\Program Files\autoexec2.sas' -sysin "C:\Program Files\Usage per Channel.sas" -log "C:\Program Filesfile://\\GL1015018\SAS\Usage per Channel.
When I tried to do it using Proc Print to in .SAS code and removed -log command in batch file, batch did not run properly.
Any help would be appreciated.
12-01-2014 04:10 PM
I ran into this a while ago - might help you, particularly as you're already writing batch files.
Hope this helps
12-01-2014 04:27 PM
Have a look into the directives for log names in the second half of below link.