Usage Note 24186: How can I automate the printing of ODS PRINTER output?
You can set up a printer definition in order to
automate the process of printing directly from SAS.
This process uses the (undocumented) DM command DMPRINTSETUP to set up a
printer:
- Issue the
dmprintsetup command.
- Select New.
- Name the printer, for example,
local.
- Select the printer type. If your printer is not listed
by name, it is probably a "PostScript Level 2" or
"PostScript Level 1" printer. If you are not sure
which, you can always use level 1. Or you can try the
following code; if the file prints okay, use level 2.
ods printer printer="PostScript Level 2" file="test.ps";
proc print data=sashelp.class; run;
ods printer close;
- Set up to print. For example, on z/OS,
based on the information from FAQ 4162
in this FAQ, you would set:
Device type: Printer
Destination:
Host options: sysout=a dest=BldgBPrinter
- Select Finish and Exit to complete the dialog box.
- Try it out. For example:
ods printer printer=local;
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) System Administration ==> Printing
|
| Date Modified: | 2005-02-08 14:24:11 |
| Date Created: | 2004-10-19 14:08:26 |