BookmarkSubscribeRSS Feed
Calcite | Level 5


I am producing SAS ODS figures in RTF that look fine within my group. When I send to others, they cannot see the x-axis labels.  Anyone know why this might happen?  


Here's the program.  I can see everything fine, the x-axis and all the labels and ticks. But when I send out to others, they cannot.  The y-axis does not seem to have any issues.  Note, they can see the legend and the footnotes under the x-axis.




options orientation=landscape nodate nonumber;

options leftmargin= 1in rightmargin = 1in topmargin = 0.5in bottommargin = 0.5in;


ods _all_ close;

ods rtf file = "&outdir\&shrtname..rtf" nogtitle nogfootnote;


goptions reset=goptions device=png300 gsfname = graphout;



ods graphics / width=1200 height=900 noborder ;


proc sgplot data=ds2  ;

scatter x=avisitn y=pchg /  group=subjid 


series x=avisitn y=pchg / group=subjid grouplp=&grp.

lineattrs=(pattern=solid thickness=1);


keylegend  /title = "&titl."  type=&type. sortorder = ascending;



xaxis type=linear label="Visit Day"    min =10 max = 70 values=(10 30 40 70)  valueshint valuesformat = figfmt.;


yaxis label=&ylabel values=(&ymin to &ymax by &yby);


refline &refline. / axis =y lineattrs=(pattern = dash thickness = 1) ;



ods rtf close;



Super User

Are you sharing the RTF file or converting to DOCX or other format?


Does your figfmt. include any style elements such as font appearance?


Either of these might have issues related to display of RTF graphics.


Providing dummy data that we could graph plus definition of the format and values of macro variables used might allow more specific answers.



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2 in conversation