Host Printing

Introduction

In SAS version 6.12, a new printing method has been introduced. Host printing gives SAS more control over the look of the printed output via the selection of the printer type, margins, and fonts. This will make the SAS System much more consistent from platform to platform as well. If you prefer, you can still use the Forms printing method as was used in SAS version 6.11 and previous releases.

Host Printing Setup for SAS Version 6.12

The example below is for configuring a printer for the laboratory in Room 44. See the examples given later for modifications to print to other printers.

  1. Select File->Print Setup from the program editor window.
  2. Select New... from the Printer Setup Window.
  3. Enter a printer name in the dialog box such as "Room 44 Laserjet 4 Postscript".
  4. Select Next -> to move to the next dialog box.
  5. Select the HP LaserJet IV Postscript Cartridge from the list of printer choices.
  6. Select "Route output to Printer" button.
  7. In the dialog box below that line, enter the printer command "/usr/bin/lpr -Pps -h".
    Note: leave off the quotes when typing in the command.
  8. Select Next -> to move to the next dialog window.
  9. Select Finish to complete the installation.
  10. Select OK from the Printer Setup window.

Printing

Select File->Print from the pull down menu of the appropriate window and ensure that the correct printer has been selected. Then select Print from the Printer dialog window. If the correct printer was not selected, then cancel the print command and go to "Print setup..." and select the desired printer as configured in the steps above.

Margins and Fonts

To set margins and fonts for the output, go to the File->Print Setup dialog box, select the printer of interest, then select the Properties button. From the Properties dialog window you can select the Margins or the Fonts button. Click on the up or down arrows to set the various margins. Select a font and point size for fonts. Note that most fonts are proportionally spaced and so using one of these fonts rather than the default may affect the appearance of columns. Select OK when done.

Examples for Experimental Statistics Users

Printer LocationPrinter SelectionPrinter Command
Room 44 LaboratoryHP LaserJet IV Postscript Cartridge/usr/bin/lpr -Pps -h
Room 71 LaboratoryHP LaserJet IV Postscript Cartridge/usr/bin/lpr -Pps0 -J/nff/nb
Room 161 OfficeHP LaserJet IV Postscript Cartridge/usr/bin/lpr -Pps1 -J/nff/nb
Locally AttachedHP LaserJet IV PCL/usr/bin/lpr -Plp0 -h
Note: Be sure to leave a space between the printer command "lpr" and each of the options. The "-h" option suppresses the header or banner page for the printers in Room 44. The "-J/nff/nb" option suppresses the header or banner page for printers in Rooms 71 and 161.

Use the Unix command "enq -A" to get a list of available print queues if you are not printing to the printers in Room 44, Room 71, or Room 161.