Procedure Features:
PROC PRTEXP statement option:
SELECT statement
USESASHELP option
This example shows you how to write the attributes that are used to define a printer to the SAS log.
Specify the printer that you want information about, specify that only the SASHELP portion of the registry be searched, and write the information to the SAS log. The SELECT statement specifies that you want the attribute information that is used to define the printer Postscript to be included in the output. The USESASHELP option specifies that only the SASHELP registry is to be searched for Postscript s printer definitions. The data that is needed to define each printer is written to the SAS log because the OUT= option was not used to specify a SAS data set.
proc prtexp usesashelp; select postscript; run;
Procedure Features:
PROC PRTEXP statement option:
OUT= option
SELECT statement
This example shows you how to create a SAS data set that contains the data that PROC PRTDEF would use to define the printers PCL4, PCL5, PCL5E, and PCLC.
Specify the printers that you want information about and create the PRDVTER data set. The SELECT statement specifies the printers PCL4, PCL5, PCL5E, and PCLC. The OUT= option creates the SAS data set PRDVTER, which contains the same attributes that are used by PROC PRTDEF to define the printers PCL4, PCL5, PCL5E, and PCLC. SAS will search both the SASUSER and SASHELP registries, because USESASHELP was not specified.
proc prtexp out=PRDVTER; select pcl4 pcl5 pcl5e pcl5c; run;