Windows Picture and Fax Viewer
For more information about browsers and viewers that support PNG images, see the
PNG web pages at www.libpng.org.
Creating PostScript Files Using Universal Printing
PostScript Files in SAS
Universal Printing supports several levels of the PostScript printer. The default
PostScript printer and the default Universal Printer is the PostScript Level 1 color
printer. You create PostScript files using the Output Delivery System (ODS).
For a description of the PostScript Universal Printer, you can either view the printer in
the SAS registry or submit the following QDEVICE procedure and view the output in
the SAS log:
proc qdevice;
printer postscript;
run;
PostScript output supports transparent GIF files. You can use Ghostview to view
PostScript files. If you have Acrobat Distiller installed, you can distill the PostScript file
to create a PDF file that you can view in Adobe Reader.
See Also
“Color Support for Universal Printers” on page 247
Creating a PostScript File
You can create a PostScript file using the ODS PS or ODS PRINTER statements. You
specify the PS Universal Printer either as the value of the PRINTERPATH= system
option or as the value of the PRINTER= option in the ODS PRINTER statement. The
ODS PS statement creates output using the PS Universal Printer. Therefore, you do not
need to explicitly specify the PS Universal Printer when you use the ODS PS statement.
Here is some sample code to create a PS file. In the first sample, the PS Universal Printer
does not need to be specified because the ODS PS statement uses the PS Universal
Printer to create a PS file. In the second sample, the PS Universal Printer is specified as
the value of the PRINTERPATH= system option and the ODS PRINTER statement
creates the PS file:
ods html close;
ods ps;
...more SAS code...
ods ps close;
ods html;
options printerpath=ps;
ods html close;
ods printer;
...more SAS code...
312 Chapter 15 Printing with SAS
ods printer close;
ods html;
SAS creates a file sasprt.ps in the current directory.
Example of Creating a PostScript File Using the ODS PS Statement
This example creates a PS file that contains the first five observations of the data set
Sashelp.Class:
options obs=5 nodate pageno=1;
ods html close;
ods ps;
proc print data=sashelp.class;
run;
ods ps close;
ods html;
Here is the distilled PostScript file in PDF output:
Figure 15.33 Sashelp.Class in a PDF File
Creating PostScript Files Using Universal Printing 313
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.166.255