LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (January 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 10 Jan 2003 11:46:40 -0800
Reply-To:     "Huang, Ya" <yhuang@AMYLIN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Huang, Ya" <yhuang@AMYLIN.COM>
Subject:      Re: SAS GRAPH output as pdf file
Comments: To: Sharon Ryan <sharon@MATLOCK.WUSTL.EDU>
Content-Type: text/plain; charset="iso-8859-1"

After I added ftext=hwpdf002 in the goptions statement, the file is fine. You can try hwpdf003 etc.

Good luck.

Ya -----Original Message----- From: Sharon Ryan [mailto:sharon@MATLOCK.WUSTL.EDU] Sent: Friday, January 10, 2003 11:04 AM To: SAS-L@LISTSERV.UGA.EDU Subject: SAS GRAPH output as pdf file

Hi all, I'm trying to create a SAS graph as a pdf file and be able to name it. My code below creates a file named 'testd.pdf' but the file won't open properly in Acrobat. If I exclude the 'gsfname=out' option, it produces a good pdf file named 'sasgraph.pdf'. What do I need to do to get a valid pdf file with a name I choose?

All help appreciated.

---------------------------------------

filename out "testd.pdf"; /* without gsfname=out below, it produces a valid 'sasgraph.pdf' file */

goptions reset=all device=pdf rotate=landscape csymbol=black ctext=black cback=white htext= 1.0 gsfmode=replace

gsfname=out ; /* using this gsfname statement creates a file named 'testd.pdf', but it won't open properly */

symbol1 interpol=join value=dot h=1 w=2 color=black; symbol2 interpol=join value=square h=1 w=2 color=black;

data test; do i=1 to 5; x=i; y=i+2; z=y+2; output; end;

proc gplot ; plot x*y='*' x*z='-'/overlay; title 'test graphic output'; run;

quit;


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