LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: cc: andre <>
In-Reply-To:  <>
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 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


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?



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;

Back to: Top of message | Previous page | Main SAS-L page