02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

160 Sample Programs and Summary Chapter 7<br />

z/<strong>OS</strong> PDF<br />

Table 7.4 PDF Variables<br />

Model PDF<br />

Device Type DISK<br />

Destination Userid.sasprt.pdf<br />

Host Options recfm=vb<br />

Protocol ASCII<br />

Translate Table NONE<br />

Buffer Size 255<br />

FTP to PC Binary<br />

Sample Programs and Summary<br />

Generate PDF Output and Save to a File<br />

All of the sample programs access the <strong>SAS</strong>LIB.HOUSES data set, which is shown in<br />

“The <strong>SAS</strong>LIB.HOUSES Data Set” on page 178. The first six sample programs execute<br />

the same PROC PRINT using different combinations of output <strong>for</strong>mats and printing<br />

destinations. Sample 7 and Sample 8 use <strong>SAS</strong>/GRAPH code to execute PROC REG<br />

followed by PROC GPLOT, again with different output <strong>for</strong>mats and printing<br />

destinations. See “Summary of Printing Examples” on page 179 <strong>for</strong> a summary of the<br />

results.<br />

The sample programs were developed on the z/<strong>OS</strong> plat<strong>for</strong>m, with a printer device of<br />

PostScript output written to a file.<br />

To generate output to other printer definitions, use the printers defined at your site,<br />

or include your own printer definitions. See “Setting Up a Universal Printer with PROC<br />

PRTDEF” on page 156 <strong>for</strong> more in<strong>for</strong>mation.<br />

Sample 1: ODS and a Default Universal Printer<br />

Output: Default Universal Printer<br />

Format: ODS<br />

options linesize=80 nodate;<br />

libname saslib ’.saslib.data’;<br />

ods listing close;<br />

ods printer;<br />

title1 ’ods and up default’;<br />

proc print data=saslib.houses;<br />

<strong>for</strong>mat price dollar10.0;<br />

run;<br />

ods printer close;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!