Date: Tue, 1 Mar 2011 10:39:31 -0500
Reply-To: Nat Wooding <nathani@VERIZON.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <nathani@VERIZON.NET>
Subject: Re: What Goptions need to be used ??
In-Reply-To: <201103011521.p21BlIs3030126@waikiki.cc.uga.edu>
Content-Type: text/plain; charset="US-ASCII"
Art
I think you have the solution. I did so little graphics the past few years
and did not do any exporting to MS products so I am behind the times on the
drivers. I need to add that TS doc to my favorites list since I seem to have
a hard time finding them when I go the Institute web site.
I hope the meeting goes well on Friday.
Nat
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Arthur
Tabachneck
Sent: Tuesday, March 01, 2011 10:22 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: What Goptions need to be used ??
Nat,
Could the problem be due to trying to use CGM within an RTF file? A summary
of valid devices is provided at:
http://support.sas.com/techsup/technote/ts674/ts674.html#IIIB1
The following code appears to work without any notes:
goption reset=all device= CGMOFML rotate=landscape gaccess=gsasfile
gsfname=graphout handshake=none gsfmode=replace gprotocol=sasgpasc
noborder noprompt gunit=pct ftext='SIMPLEX' ftitle='SIMPLEX'
vsize=7 in hsize=8.0 in htitle=2 htext=1.5 display;
/*filename graphout temp;*/
filename graphout "c:\art\neto_1.cgm";
symbol1 i=r value=triangle color=black;
/*ods rtf file="c:\art\neto_1.rtf" startpage=never notoc_data;*/
Proc GPlot data = sashelp.air;
plot Air*Date;
run;
quit;
/*ods rtf close;*/
Art
-------
On Tue, 1 Mar 2011 08:43:18 -0500, Nat Wooding <nathani@VERIZON.NET> wrote:
>Learner
>
>I tried adding a Gplot to your code and got the same answer (I'm running
>9.1.3, for what that's worth). There are two usage notes that refer to the
>
>"Font xxx could not be used"
>
>One refers to the graphics editor and the other, 1546
>http://support.sas.com/kb/1/546.html
>
>Speaks of problems when an orientation= is used with a driver:
>
>When attempting to specify a PC TrueType font (such as Courier New or
>Times New Roman) with graphics output, the following warning messages
>will appear in the SAS Log if you also specify GOPTIONS
>ROTATE=LANDSCAPE:
>
> Warning: Font xxxxxx could not be used.
> Font SIMPLEX substituted for font xxxxxx.
>
>SAS/GRAPH will use the correct TrueType font if you produce your
>graphics in the default orientation of the driver.
>
>To circumvent the problem, do not specify ROTATE=LANDSCAPE on the
>GOPTIONS statement and add the following statement before your SAS/GRAPH
>procedure statements:
>
> options orientation=landscape;
>
>Note that specifying ORIENTATION= on an OPTIONS statement will change
>the default orientation in Print Setup. To set it back to portrait mode
>after the graphs are produced, add the following statement after your
>graphics code:
>
> options orientation=portrait;
>
>___________________________________________________________________________
>end of snip
>
>I tried removing the orientation in the goption and added the options
>statement as suggested but had no success in eliminating the substitution
>note.
>
>Can you use a different DEVICE= option? If no one supplies a useful answer,
>I suggest that you call tech support. My code follows in case anyone wants
>to play.
>
>Nat Wooding
>
>
>goption reset=all device=cgm /*rotate=landscape*/ gaccess=gsasfile
> gsfname=graphout handshake=none gsfmode=replace gprotocol=sasgpasc
> noborder noprompt gunit=pct ftext='SIMPLEX' ftitle='SIMPLEX'
> vsize=7 in hsize=8.0 in htitle=2 htext=1.5 display;
>
>
>filename graphout temp;
>
>symbol1 i=r value=triangle color=black;
>
>
>ods rtf file="c:\park\neto_1.rtf" startpage=never notoc_data;
>
>Proc GPlot data = sashelp.air;
>plot Air*Date;
>run;
>quit;
>ods rtf close;
>
>
>
>-----Original Message-----
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
>SAS_learner
>Sent: Monday, February 28, 2011 6:21 PM
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: What Goptions need to be used ??
>
>These are the Options I am using ??
>
>goption reset=all device=cgm rotate=landscape gaccess=gsasfile
> gsfname=graphout handshake=none gsfmode=replace gprotocol=sasgpasc
> noborder noprompt gunit=pct ftext='SIMPLEX' ftitle='SIMPLEX'
> vsize=7 in hsize=8.0 in htitle=2 htext=1.5 display;
>
>
>filename graphout temp;
>
>symbol1 i=r value=triangle color=black;
>
>
>ods rtf file="&rtfout/ neto_1.rtf" startpage=never notoc_data;
>
>Using the above Goptions I am getting an warning I did not mention any
>where to use Courier font. What Goption I need to use to get rid of the
>warning
>
>WARNING: Font Courier could not be used.
> Font SIMPLEX substituted for font Courier.
>NOTE: Regression equation : plat_chg(trtsort:Placebo) = 7.743982 +
>0.614589*esr_chg.