PUT output can be directed to a text file by adding a FILE statement in the data step;
Data com;
file "put the name of your output file here";
<other code>
run;
I'm not sure what you mean by "SAS file" as SAS uses a fair number of different file types: data set, catalog, transport, programs as well as generating output in many more formats.