<p>Is there a way to run a one-liner in sas, or do I have to create a file?  I'm looking for something like the -e flag in perl.</p>

Never having used sas, what I might try is something like:
```
```
echo <insert sas code here> | sas --execute-file -
```
```
Oftentimes applications will let you specify '-' as a file to have it read from STDIN. And 'echo' just prints its arguments out, and the | connects them together.