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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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