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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Directing <strong>SAS</strong> Log and <strong>SAS</strong> Procedure Output Sending Procedure Output as E-Mail 143<br />

/* This is necessary when e-mailing the HTML output. */<br />

/* ----------------------------------------------------- */<br />

ods html path=odsout<br />

body=’shoe_report.html’<br />

rs=none<br />

nogtitle;<br />

/* ----------------------------------- */<br />

/* define title and footnote <strong>for</strong> chart */<br />

/* ----------------------------------- */<br />

title1 ’Total Sales <strong>for</strong> the Americas’;<br />

footnote1 h=3 j=l ’click on bars’ j=r ’REPORT3D ’;<br />

/* ----------------------------------- */<br />

/* assign a pattern color <strong>for</strong> all bars */<br />

/* ----------------------------------- */<br />

pattern color=cyan;<br />

/* --------------------------- */<br />

/* define axis characteristics */<br />

/* --------------------------- */<br />

axis1 order=(0 to 7000000 by 1000000)<br />

minor=(number=1)<br />

label=none;<br />

axis2 label=none offset=(4,4)<br />

value=(’Canada’ ’C. Amr./Car.’<br />

’S. America’ ’USA’);<br />

/* --------------------------- */<br />

/* generate vertical bar chart */<br />

/* --------------------------- */<br />

proc gchart data=newshoes;<br />

vbar3d Region / discrete<br />

width=6<br />

sumvar=sales<br />

html=regdrill<br />

coutline=black<br />

cframe=blue<br />

maxis=axis2<br />

raxis=axis1<br />

name=’shoes1 ’;<br />

run;<br />

quit;<br />

/* ----------------------------------------------------- */<br />

/* Open the HTML destination <strong>for</strong> the PROC PRINT output. */<br />

/* Specify RS=NONE to write one line of HTML per record. */<br />

/* This is necessary when e-mailing the HTML output. */<br />

/* ----------------------------------------------------- */<br />

ods html body=’shoes1_regsales.html’<br />

rs=none<br />

path=odsout;<br />

/* ----------------------------------------- */

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

Saved successfully!

Ooh no, something went wrong!