I have created a scheduled task in Windows to execute a SAS job every morning. In my test runs, the scheduler successfully opens the SAS code and runs it. However, it will error out on my last "PROC EXPORT" statement.
If run the code manually (not using the scheduled task in Windows) it exports the file perfectly.