Dear all,
can anyone provide the most efficient/simple syntax to add a degree sign (like for temperature in a vital signs table) to a display colum header in proc report?
thank you, Jill1
Don't know where you want to include it, but you can type it directly. Hold the alt key down and, while you have it depressed, enter 0176 using your numeric keypad, then release the alt key. e.g.: °
Art, CEO, AnalystFinder.com
You could also create a macro variable with the degree sign using the byte function as below. You could then use the same macro variable in the column headings where you want to display the degree sign
%let degree=%sysfunc(byte(176));
%put °ree;
Hi,
And for completeness, to insert special symbols into your PROC REPORT or other Headers or Titles, using the ODS ESCAPECHAR Unicode function, you only need to declare you Escape Character (shown as '^' below) and then use the Unicode number for the symbol you want.
cynthia
Ah, thanks, another very concise way to do this. THANKS!
Thanks ..do you mind showing me the syntax to include a macro variable the DEFINE stmt? thank you!
DEFINE TEMP / display "Oral Temperature|(°C)"
Do Direct Copy Paste Degree symbol sign
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.