Date: Mon, 22 Dec 2008 08:12:14 -0800
Reply-To: "Huang, Ya" <Ya.Huang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Huang, Ya" <Ya.Huang@AMYLIN.COM>
Subject: Re: ODS/PDF with SASPRTC in v8.2 and v9.2
In-Reply-To: <200812200045.mBJJGY0W029180@malibu.cc.uga.edu>
Content-Type: text/plain; charset="US-ASCII"
FYI,
Both Andre and a little Birdie suggested to close listing destination
before open up pdf destination. It worked!
For a more detailed explanation, the following is from the little
birdie:
Things have changed in 9.2. There is a much deeper binding between
SAS/GRAPH and ODS:
At least one ODS destination must be open in order to produce graphics
output. If you
close all ODS destinations before running a graphics proc, you will get
"Warning:
No output destinations active."
By default, the ODS LISTING destination is open. So when you want to
create just a pdf
file, you should precede your code with
ODS LISTING CLOSE; or ODS _ALL_ CLOSE;
ODS PDF ...;
Code
ODS PDF CLOSE;
By not closing unneeded ODS destinations, you take a performance hit
too.
-----Original Message-----
From: Ya Huang [mailto:ya.huang@AMYLIN.COM]
Sent: Friday, December 19, 2008 4:45 PM
To: SAS-L@LISTSERV.UGA.EDU
Cc: Huang, Ya
Subject: ODS/PDF with SASPRTC in v8.2 and v9.2
Hi there,
The follwing code when run on v8.2 will only create junk.pdf.
But when it is run on v9.2, it not only creates the pdf file, it also
prints to the default printr.
Any idea why? I guess it has something to do with the system option, but
which one?
Thanks
Ya
ods pdf file="c:\temp\junk.pdf";
goptions reset=all device=sasprtc ftext='Helvetica' htext=3pct; proc
gplot data=sashelp.class; plot weight*height; run; quit;
ods pdf close;