How can I send SAS log file "saslog.log
" to an another directory in the Unix bash shell?
When I run my script with SAS program "mysasprogram.sas
" I am getting my SAS log file in my current directory "/user/name
", but I want it to go to the "/user/name/log"
directory. In the below script I can send "saslog.log
" to the "/user/name/log"
directory, but it always appears to be empty. Is there any other way to send a SAS log to an another directory?
mydir=/user/name # my current directory
proglog=/user/name/log # directory for SAS logs
$sas $mydir/mysasprogram >$proglog/saslog.log