This example uses PROC
PRINTTO to route procedure output directly to a printer.
Program
options nodate pageno=1 linesize=80 pagesize=60;
filename your_fileref printer
'printer-name';
proc printto print=your_fileref;
run;
Program Description
Set the SAS system options. The
NODATE option suppresses the display of the date and time in the output.
PAGENO= specifies the starting page number. LINESIZE= specifies the
output line length, and PAGESIZE= specifies the number of lines on
an output page.
options nodate pageno=1 linesize=80 pagesize=60;
Associate a fileref with the printer name. The FILENAME statement associates a fileref with
the printer name that you specify. If you want to associate a fileref
with the default printer, omit 'printer-name'.
filename your_fileref printer
'printer-name';
Specify the file to route to the printer. The PRINT= option specifies the file that PROC PRINTTO
routes to the printer.