(Under SAS 9.3 Environment)
SAS users commonly have the need to repeatedly execute sas programs and efficiently perform log scans.we discuss one simple method that uses windows batch(*.bat) files to submit sas program
1. Sample Directory structure
2.SAS file(include main.sas & program.sas)
code for main.sas:
复制代码
code for program.sas
复制代码
for exmaple:
3.Creating and using sasauto.Bat file
code for sasauto.bat ,you may need to change the installation path "C:\Program Files\SASHome\SASFoundation\9.3\sas.exe "
复制代码
for exmaple
4.Run the bat file
(1) Initial Directory Environment
del the file "work" "result" which will recreate by main.sas
double click the sasauto.bat,input your program name and press enter
view the result in dir "result/index.html"
5.check the efficient