BookmarkSubscribeRSS Feed
gx2144
Calcite | Level 5

Hi, I had a problem when outputting the result into word document.

Here is the log

ERROR: Unable to load module 'MSWord' from template store!
ERROR: No body file. WORD output will not be created.

Can anybody help?

 

Appreciated!

3 REPLIES 3
ballardw
Super User

The LOG to describe a problem should include the Proc or data step code plus ALL the messages, notes, or warnings as well as errors.

In the case of ODS output related issues you should also include the ODS destination statement.

 

"Body file missing" often points to incorrect syntax specifying the destination file for ODS.

gx2144
Calcite | Level 5

I think I did not include the complete code. Here is my complete log.

263  ods word file = "C:\Users\xuguang\Documents\My SAS Files\9.4\pulmonary\outliers.docx";
ERROR: Unable to load module 'MSWord' from template store!
ERROR: No body file. WORD output will not be created.
Reeza
Super User
There is no ODS WORD, it's still pre-production so I would avoid it still. There is ODS RTF however that can be used.

https://documentation.sas.com/?docsetId=odsug&docsetTarget=p10mxeb6wxqfjgn1p5u0w4t8qf20.htm&docsetVe...

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 937 views
  • 0 likes
  • 3 in conversation