The SAS Output Delivery System and reporting techniques

ODS RTF character incorect

Reply
Occasional Contributor
Posts: 10

ODS RTF character incorect

Hi Community,

I modified a product ID in a dataset following if a Special condition is true:

num_extend = CATT("°", num);

So in the dataset there are num:extends like this:

 

 

°1234

2345

3456

°4567

...

When i print a table on a RTF file it generates following:

pic3.PNG

 

Is there an Option preventing this?

 

Thank you in advance & best regards,

Felix

Super User
Super User
Posts: 7,711

Re: ODS RTF character incorect

Avoid using that at all, just add a superscript element:

data ...;
  num_extend=cats('^super{o}',num);
run;

ods escaechar="^";

proc report data=...
run;

That should put a small o before it, or you could put out the specfic character using escape codes.  The problem I see is that you have a special character in your code, writing to a text file, then read by Word and processed.  Any of those processes could either change or not understand that symbol.

Occasional Contributor
Posts: 10

Re: ODS RTF character incorect

Thank you for the Suggestion. Unfortunately this is even worse.

 

In the RTF Output it Shows following:

 

supero1234

super2345

super3456

supero5678

 

... maybe i have to take just another Symbol to indicate the numbers.

 

Super User
Super User
Posts: 7,711

Re: ODS RTF character incorect

Sorry, got the bracket in the wrong place, should be:

data ...;
  num_extend=cats('^{super o}',num);
run;

ods escaechar="^";

proc report data=...
run;

You can find out about this in the paper:

http://www2.sas.com/proceedings/forum2007/099-2007.pdf 

SAS Super FREQ
Posts: 8,819

Re: ODS RTF character incorect

Link was broken for me...here's the link that worked:
http://www2.sas.com/proceedings/forum2007/099-2007.pdf

cynthia
Ask a Question
Discussion stats
  • 4 replies
  • 138 views
  • 1 like
  • 3 in conversation