When the user selects Print_Report from the menu bar, a menu is displayed. When
the user selects one of the listed departments or chooses to enter a different department,
the following statements are invoked. These statements are stored in the external file
referenced by the PRT fileref.
PROC PRINTTO routes the output to an external file.
proc printto
file='external-file' new;
run;
libname proclib
'SAS-data-library';
proc print data=proclib.deptxx;
title 'Information for deptxx';
run;
This PROC PRINTTO step restores the default output destination. See Chapter 43,
“PRINTTO Procedure,” on page 1343.
proc printto;
run;
The %INCLUDE ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.