PRTEXP Procedure

Example 2: Writing Attributes to a SAS Data Set

Features:

PROC PRTEXP statement option: : OUT=

SELECT statement

Details

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.

Program

proc prtexp out=PRDVTER;
select pcl4 pcl5 pcl5e pcl5c;
run;

Program Description

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;