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
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.