BookmarkSubscribeRSS Feed
Arthur2
Calcite | Level 5

Hi,

 

I'm using proc mixed to get estimates and the plots for model validity check.

 

ods graphics on;
ods output lsmeans=estimate
diffs=diff;

proc mixed data = mydata (where=(treatn in (1,2,3))) plots=all;
by estremn estrem atypen atype paramcd param avisitn avisit ;
class treatn;
model aval = treatn base/residual outp=resid;
lsmeans treatn / pdiff=control('1');
lsmeans treatn / pdiff=control('2');
run;
ods output close;
ods graphics off;

 

Help is needed to create a file in the "Output" folder where all the plots go instead of going to the user area folder
Thanks

5 REPLIES 5
StatDave
SAS Super FREQ

Specify a statement like the following to direct the displayed results to an rtf file:

 

ods rtf file='tmp.rtf';

Arthur2
Calcite | Level 5
Thanks for your suggestion. Could you please also suggest how can I restrict the plots going to the user area folder as stray .png files. Thanks
StatDave
SAS Super FREQ

You might just need to close the Listing destination:

 

ods listing close;

SylvainTremblay
SAS Employee

Related to your question, in SAS 9.4M6 the ODS destination for Word has been added as a preproduction destination. This destination creates Microsoft Word documents (.docx).

 

"The ODS destination for Word standard format is richer than the intermediate text formats of ODS RTF reports. Although Microsoft Word reads the intermediate text format reports, some SAS reporting elements might get lost in translation because the intermediate formats of the RTF-generated report are not as rich as the standard formats required by the ODS destination for Word."

ods word file="pagexofy.docx"

ODS WORD Statement

 

 

SylvainTremblay
SAS Employee

In ODS, you can control the image location (path) for ODS Graphics output and you can also specify the format of the image. Here's an example:

 

ods graphics 
   / reset 
     width=5in          /* width of the image = 5 inches */
     imagename="fitplot" 
     imagefmt=png       /* Format of the image  */;

ods listing 
    gpath="path"         /*path of the destination folder of the image */
    image_dpi=200        /* Dot per inch resolution */
    style=analysis      /* ODS Style */;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1049 views
  • 0 likes
  • 3 in conversation