Difference between filename and . filename in macOS terminal
. /path/setsas.sh loads the variables and functions from the script into your current shell session.  It's the same as running source /path/setsas.sh.  Running path/setsas.sh on the other hand spawns a new process.  The variables and functions will not be accessible from your current shell.  That's why the commands weren't working for you.