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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: