The SASLIB.HOUSES data set contains the data used by the example programs
in this section.
libname saslib '.saslib.data';
data saslib.houses;
input style $ 1-8 sqfeet 15-19 brs 22 baths 25-27 price 30-38;
datalines;
CONDO 1400 2 1.5 80050
CONDO 1390 3 2.5 79350
CONDO 2105 4 2.5 127150
CONDO 1860 2 2 110700
CONDO 2000 4 2.5 125000
RANCH 1250 2 1 64000
RANCH 1535 3 3 89100
RANCH 720 1 1 35000
RANCH 1300 2 1 70000
RANCH 1500 3 3 86000
SPLIT 1190 1 1 65850
SPLIT 1615 4 3 94450
SPLIT 1305 3 1.5 73650
SPLIT 1590 3 2 92000
SPLIT 1400 3 2.5 78800
TWOSTORY 1810 4 3 107250
TWOSTORY 1040 2 1 55850
TWOSTORY 1240 2 1 69250
TWOSTORY 1745 4 2.5 102950
TWOSTORY 1300 2 1 70000
run;
Example |
Where Printed |
Output Format |
ods listing close;
ods printer;
proc print data=saslib.houses; run;
ods printer close;
|
Default Universal Printer |
ODS |
options printerpath=MYPRINT;
ods listing close;
ods printer;
proc print data=saslib.houses; run;
ods printer close;
|
Universal Printer MYPRINT |
ODS |
filename MYFILE ".myfile.out";
options printerpath= (Postscript MYFILE);
ods listing close;
ods printer;
proc print data=saslib.houses; run;
ods printer close;
|
File .MYFILE.OUT with the characteristics of the Universal Printer "Postscript" |
ODS |
options printerpath=MYPRINT;
filename upr uprinter;
proc printto print=upr; run;
proc print data=saslib.houses; run;
|
Universal Printer MYPRINT |
Line Printer1 |
filename upr uprinter;
proc printto print=upr; run;
proc print data=saslib.houses; run;
|
Default Universal Printer |
Line Printer1 |
options printerpath=MYPRINT;
ods listing close;
ods printer;
goptions device=sasprtc; *
proc reg data=saslib.houses; .... run;
proc gplot; .... run;
ods printer close;
|
Universal Printer MYPRINT |
ODS |
filename OUT ".graphip.ps";
goptions device=ps gsfname=OUT;
proc reg data=saslib.houses; .... run;
proc gplot; .... run;
|
File .GRAPHIP.SAS |
As specified by the SAS/GRAPH device
driver |
options printerpath=postscript
device=sasprtc;
proc gplot; .... run;
|
Universal Printer Postscript file .SASPRT.PS |
SAS/GRAPH |
1 The default font is 12-point Courier unless
otherwise specified.
* goptions device= is needed only in
batch mode.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.