This example shows you
how to delete a printer from the registry.
Program
data deleteprt;
name='printer1';
run;
proc prtdef data=deleteprt delete list;
run;
Program Description
Create the DELETEPRT data set. The
NAME variable contains the name of the printer to delete.
data deleteprt;
name='printer1';
run;
Delete the printer definition from the registry and write
the deleted printer to the log. The
DATA= option specifies DELETEPRT as the input data set. PROC PRTDEF
creates printer definitions for the SAS registry. DELETE specifies
that the printer is to be deleted. LIST specifies to write the deleted
printer to the log.