You can create a PCL
file using the ODS PCL or ODS PRINTER statements. ODS PCL uses the
PCL5 universal printer by default. You can specify a different PCL
printer by setting a value for PRINTER= in the ODS PCL statement.
You specify the
pcl-printer universal printer either as the value of the PRINTERPATH= system
option or as the value of the PRINTER= option in the ODS PRINTER statement.
If you set the PRINTERPATH=
pcl-printer system option, you do not need to specify
pcl-printer in the ODS PRINTER statement.
Here is some sample
code to create a PCL file. The first sample specified does not specify
a universal printer in the ODS PCL statement and SAS uses the default
PCL5 printer. The second sample specified the PCL5C universal printer
as the value of the PRINTER= option in the ODS PCL statement.
-
ods html close;
ods pcl;
...more SAS code...
ods pcl close;
ods html;
-
ods html close;
ods pcl printer=pcl5c;
...more SAS code...
ods pcl close;
ods html;
:
Using the same sample
code, you can create a PCL file by substituting ODS PCL with ODS PRINTER:
-
ods html close;
ods printer printer=pcl5c;
...more SAS code...
ods printer close;
ods html;
-
options printerpath=pcl5c;
ods html close;
ods printer;
...more SAS code...
ods printerl close;
ods html;
SAS creates the file
sasprt.pcl in the current directory. PCL files can be viewed after
they are created by sending the output to a Hewlett-Packard LaserJet
printer or a Hewlett-Packard Color LaserJet printer. PCL files can
also be viewed on a monitor with some software applications.