Hi found a problem with ODS word with Proc ttest. when you have more than one analysis variable the title doesn't change from the first one.
For example if you have code something like this:
ods word file='junk.docx';
proc ttest data=screen;
var SCREEN_B_WDHR SCREEN_B_WEHR;
class NAPLAN3_R_NMS;
title 'Screen time ';
run;
ods word close;
When the analysis variable changes to SCREEN_B_WEHR the title still says the first variable, ie SCREEN_B_WDHR, which makes the output confusing to read.
It can be overcome by including the option 'options(body_title="yes")' in the ODS word statement, but that seems a bit clunky.
For it to work it would need a section break when the variable changes.
Regards
R
ODS Word is preproduction. That means it is still in testing and development.
Use ODS rtf instead. Use your word processor software to open and save as if you need Docx file format.
Its been preproduction for quite a while now.
R
The same occurs with ODS EXCEL even though every table is on a separate sheet. ODS excel is not labelled preproduction so I would call this a bug.
R
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.