Data visualization with SAS programming

ODS output

Accepted Solution Solved
Reply
Contributor
Posts: 46
Accepted Solution

ODS output

[ Edited ]

I have the following code which runs fine:

 

 

ods rtf file='/folders/myfolders/regr1resuls/CLCLr.rtf' style=journal;
ods TRACE ON;
ods output FitStatistics=FitStat ParameterEstimates=param;

proc reg data=boot1 plots=all;
	/*plots(only)=FITPLOT(stats=none);*/
	model CL=CLr /clb SPEC;
	output out=pred predicted=p lcl=lcl lclm=lclm ucl=ucl uclm=uclm residual=r;

proc print data=fitstat;
run;

proc print data=param;
run;

proc print data=pred;
run;

run;
quit;
ods rtf close;

 

The problem is that the outputted graphs are truncated (i.e., the X axis is not visible).  I have attached an output for your perusal.

Can someone tell me why this occurs and how to correct it?

 


Accepted Solutions
Solution
‎08-04-2016 02:24 PM
Grand Advisor
Posts: 16,378

Re: ODS output

For some reason your page size is messed up. If you set it to Letter, even in the present Word Doc everything shows fine. 

 

Did you try running any options before you ran the code you presented?

 

 

If I run a simlar set of code in SAS UE I don't have this issue. 

 

 

View solution in original post


All Replies
Grand Advisor
Posts: 9,748

Re: ODS output

It appears that the current settings for the size of the ODS graph area exceeds the area left within your very small (6 by 2.25 inches) area between margins and header/fooder.

Try

 

ods graphics/ height=2in;

 

and see if that helps any.

Contributor
Posts: 46

Re: ODS output

That resolved the problem.

Thanks

Solution
‎08-04-2016 02:24 PM
Grand Advisor
Posts: 16,378

Re: ODS output

For some reason your page size is messed up. If you set it to Letter, even in the present Word Doc everything shows fine. 

 

Did you try running any options before you ran the code you presented?

 

 

If I run a simlar set of code in SAS UE I don't have this issue. 

 

 

Contributor
Posts: 46

Re: ODS output

Where in the present code would I set page size and what is the correct syntax?

Grand Advisor
Posts: 16,378

Re: ODS output

The default is letter so I don't know why yours is different unless you've already changed it?

 

I would make sure my pagesize was letter and orientation was portrait.

 

 

http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#n1ieb4hg6fijz...

 

If you haven't already, restarting SAS may reset the defaults.

 

 

Post a Question
Discussion Stats
  • 5 replies
  • 324 views
  • 0 likes
  • 3 in conversation