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
Content-Type: text/plain; charset="US-ASCII"
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
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
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 ...;
ODS PDF CLOSE;
By not closing unneeded ODS destinations, you take a performance hit
From: Ya Huang [mailto:ya.huang@AMYLIN.COM]
Sent: Friday, December 19, 2008 4:45 PM
Cc: Huang, Ya
Subject: ODS/PDF with SASPRTC in v8.2 and v9.2
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
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;