Routing Procedure Output and the SAS Log to a File
Using SAS System Options. You can use SAS system options to route your SAS output or SAS log to a file. For example, if you want to override the default behavior and send your procedure output from a batch SAS job to the file C:SASOUTPUTPROG1.TXT, you can invoke SAS with the following command: SAS -SYSIN C:SASPROGSPROG1 -PRINT C:SASOUTPUT ...