The SAS Output Delivery System and reporting techniques

Text in small caps (Proc report - ODS RTF)

Accepted Solution Solved
Reply
Contributor
Posts: 30
Accepted Solution

Text in small caps (Proc report - ODS RTF)

Dear all,

 

Do you know if it is possible to put text in small caps using proc report (ODS RTF) ? I use SAS 9.4.

I've tried the following piece of code in a compute statement in my proc report :

call define(_row_,'style',"style={font='SMALL-CAPS'}");

 

Thanks in advance for your help,

BR,

 

Violaine


Accepted Solutions
Solution
‎06-24-2015 11:11 AM
Contributor
Posts: 30

Re: Text in small caps (Proc report - ODS RTF)

Thanks for your answer.

For your info, I found the solution I was looking for: I add "{\scaps " before and "}" is added after the value of the variable to be printed.

By this way, the value of the variable are put in small capital letters. This was just in order to facilitate the readability of the printed output.

BR,

View solution in original post


All Replies
Esteemed Advisor
Esteemed Advisor
Posts: 6,726

Re: Text in small caps (Proc report - ODS RTF)

Hi,

Well, report is an output function, doesn't really change the actual data, so whilst you might be able to force it, why?  Just do it in a datastep previously:

data a;

     set b;

     the_variable=lowcase(the_variable);

run;

Alternatively, do you mean subscript?  I.e. have small letters.  If so then use escape characters:

ods escapechar="^";

data test;

     a="This is a Test^sub{test}"; output;

run;

Then report that. 

Solution
‎06-24-2015 11:11 AM
Contributor
Posts: 30

Re: Text in small caps (Proc report - ODS RTF)

Thanks for your answer.

For your info, I found the solution I was looking for: I add "{\scaps " before and "}" is added after the value of the variable to be printed.

By this way, the value of the variable are put in small capital letters. This was just in order to facilitate the readability of the printed output.

BR,

Post a Question
Discussion Stats
  • 2 replies
  • 363 views
  • 3 likes
  • 2 in conversation