Chapter Contents |
Previous |
Next |
The GPRINT Procedure |
Procedure features: |
| ||||
Other features: |
| ||||
Data set: | REFLIB.DOWHLC | ||||
Sample library member: | GR22N02 |
This example creates a graph from a text file and increases the size of the text. The first part of this example uses the PRINT procedure to create an external file that contains SAS output. The GPRINT procedure is used to import the text file into a graph. Because the LINESIZE= option (columns) is set to 76 and the PAGESIZE= option (rows) is set to 24, the output is small and occupies only a portion of the page, as shown in GPRINT Procedure Output with No Adjustments (GR22N02(a)):
GPRINT Procedure Output with No Adjustments (GR22N02(a))
In the second part of this example, the number of columns and rows in the graphics output area is reduced with the HPOS= and VPOS= graphic options. Thus, the size of the characters in the graph increase, as shown in GPRINT Procedure Output with Adjusted Sizing (GR22N02(b)):
GPRINT Procedure Output with Adjusted Sizing (GR22N02(b))
libname reflib 'SAS-data-library'; goptions reset=global border cback=white colors=(black blue green red) ftitle=swissb ftext=none hsize=7in vsize=5in hpos=142 vpos=68; |
filename dow 'external-file'; |
options nodate nonumber linesize=76 pagesize=24; |
proc printto print=dow new; run; |
proc print data=reflib.dowhlc; run; |
proc printto; run; |
title 'Dow-Jones Averages'; footnote h=3 pct f=swiss j=r 'GR22N02(a) '; |
proc gprint fileref=dow; run; |
goptions hpos=75 vpos=30; |
footnote h=3 pct f=swiss j=r 'GR22N02(b) '; |
proc gprint fileref=dow; run; |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.