Date: Mon, 15 Mar 2010 17:27:11 -0400
Reply-To: Randy Herbison <RandyHerbison@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Randy Herbison <RandyHerbison@WESTAT.COM>
Subject: Re: how to produce color output for "ods graphics"?
In-Reply-To: <fd44b3fc-09e4-4543-80dd-59b09164b829@q2g2000pre.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"
Drop the ODS PRINTER statement and add a file name to the ODS PDF statement. Works with 9.2, should work with 9.1.3 too.
ods pdf file='yourFile.pdf;
ods graphics;
proc kde data = sashelp.air;
univar air;
run;
ods graphics off;
ods pdf close;
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Gang Liang
Sent: Monday, March 15, 2010 2:31 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: how to produce color output for "ods graphics"?
I would like to channel output from the "ods graphics" statement to an
pdf file, but found that the output graphics are grey-scale. On the
other hand, the html output does have color. Please see the code
below.
BTW, I am using SAS 9.1.3. Does anyone know a way to get this around?
Thanks!
Gang
ods html;
ods graphics;
proc kde data = sashelp.air;
univar air;
run;
ods graphics off;
ods html close;
ods printer printer='sasprtc' color=full;
ods pdf;
ods graphics;
proc kde data = sashelp.air;
univar air;
run;
ods graphics off;
ods pdf close;