BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hetuvio
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
hetuvio
Calcite | Level 5

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

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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. 

hetuvio
Calcite | Level 5

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,

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
  • 1246 views
  • 3 likes
  • 2 in conversation