QDEVICE Procedure

Example 4: Generate a Report for the Default Printer

Features:

PROC QDEVICE statement

PRINTER statement

Details

By default, printing in SAS under Windows is done by the default Windows printer and not by Universal Printing. Therefore, the results that you see for the QDEVICE procedure when you use the printer _PRINTER_ statement differ. Under Windows, where the NOUPRINT system option is the default, the report is based on the printer interface device that interfaces with the default Windows printer. Under UNIX, where the UPRINT system option is set, the report is based on the default universal printer.
Because the REPORT= option is not specified, the QDEVICE procedure generates a General report. The OUT= option is not specified and the results are written to the SAS log. The _PRINTER_ keyword determines the default printer to report on and generates a report for that printer.
For more information, see these topics:

Program: Windows

proc qdevice;
  printer _PRINTER_;
run;

SAS Log: Default Windows Printer Report

4    proc qdevice;
5    printer _PRINTER_;
6    run;

NOTE: The "chpljj24" printer will be used by default with the ODS PRINTER destination.

                 Name: WINPRTC
          Description: Microsoft Windows Hardcopy (color)
                 Type: System Printer
       Device Catalog: ( 'path-to-Sashelp' )
     Default Typeface: SAS Monospace
           Font Style: Roman
          Font Weight: Normal
          Font Height: 10 points
       Maximum Colors: 2097152
         Visual Color: True Color
        Color Support: RGB
             I/O Type: PRINTER
          Data Format: Host Printer
               Height: 10.67 inches
                Width: 8.15 inches
              Ypixels: 6392
              Xpixels: 4892
           Rows(vpos): 55
        Columns(hpos): 97
          Left Margin: 0.17 inches
  Minimum Left Margin: 0.17 inches
         Right Margin: 0.18 inches
 Minimum Right Margin: 0.18 inches
        Bottom Margin: 0.17 inches
Minimum Bottom Margin: 0.17 inches
           Top Margin: 0.18 inches
   Minimum Top Margin: 0.18 inches
       XxY Resolution: 600x600 pixels per inch
   Compression Method: None
       Font Embedding: Never

Program: UNIX

proc qdevice;
   printer _PRINTER_;
run;

SAS Log: Default Universal Printer Report under UNIX

4    proc qdevice;
5    printer _PRINTER_;
6    run;

NOTE: The "PostScript Level 1" printer will be used by default with the ODS
      PRINTER destination.

                 Name: PostScript Level 1
          Description: Generic PostScript Level 1 Printer
                 Type: Universal Printer
             Registry: SASHELP
            Prototype: PostScript Level 1 (Color)
     Default Typeface: Cumberland AMT
           Font Style: Regular
          Font Weight: Normal
          Font Height: 8 points
       Maximum Colors: 16777216
         Visual Color: Direct Color
        Color Support: CMYK
          Destination: sasprt.ps
             I/O Type: DISK
          Data Format: PostScript
               Height: 10 inches
                Width: 7.5 inches
              Ypixels: 3000
              Xpixels: 2250
           Rows(vpos): 78
        Columns(hpos): 112
          Left Margin: 0.5 inches
  Minimum Left Margin: 0 inches
         Right Margin: 0.5 inches
 Minimum Right Margin: 0 inches
        Bottom Margin: 0.5 inches
Minimum Bottom Margin: 0 inches
           Top Margin: 0.5 inches
   Minimum Top Margin: 0 inches
       XxY Resolution: 300x300 pixels per inch
   Compression Method: None
       Font Embedding: Option