Routing the Output and the SAS Log with PROC PRINTTO

Routing Output to an Alternate Location

You can use the PRINTTO procedure to redirect SAS procedure output from the HTML destination to an alternate location. These locations are:
  • a permanent file
  • a SAS catalog entry
  • a dummy file, which serves to suppress the output
After PROC PRINTTO executes, all procedure output is sent to the alternate location until you execute another PROC PRINTTO statement or until your program or session ends.
The default destination for the procedure output depends on how you configure SAS to handle output. For more information, see the discussion of SAS output in Understanding and Customizing SAS Output: The Output Delivery System (ODS) and Understanding ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.