BookmarkSubscribeRSS Feed
chjones
Calcite | Level 5

Hi Everyone,

 

I am in the process of report automation,specifically I'm writing an appendix to a journal article using Base SAS 9.4.  I have written the code to automate the journal text, tables,page numbering, etc.  I now need to write the appendix, which include the formulas used to calculate various items throughout the journal.

 

Is there a way for me to write mathematical expressions to be output into an ods rtf file.  I've inserted subscripts using ~unicode(...), but is there something I can do to output something along the lines of the attached file.  Also, the attached formula is one that I will ultimately need,  I really will be needing to do summations, square roots, squared number, etc.

 

Any info is greatly appreciated. Thank You!

 

2 REPLIES 2
ballardw
Super User

You can use Escapechar and the RAW function to insert native RTF codes. I haven't done this with the math functions so I can't provide an example.

 

You may be able to build a version in Word (or other word processor) and then save the file as RTF and then search the text with a text editor to find what you need to insert. If you go this route you may want to find a copy of the RTF specification to find which parts are actually the math symbols.

 

 

chjones
Calcite | Level 5

Thank You, I will give that a shot. I have never used raw rtf code, so I will have to read up on that, but your approach sounds feasible.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 2 replies
  • 1361 views
  • 0 likes
  • 2 in conversation