BookmarkSubscribeRSS Feed
ANKH1
Pyrite | Level 9

Following a post by PageMiller, I tried using (*ESC*) to display unicodes but it did not not work. This is the code:

proc format;
value grade_f
1="Grade(*ESC*){unicode '0003'c}20 (*ESC*){unicode '0025'}"
2="Grade(*ESC*){unicode '2265'c}80 (*ESC*){unicode '0025'}";
run;

proc sgplot data=din;
vbox grade/category=grade_group;
format score_group grade_f.;
run;
3 REPLIES 3
WarrenKuhfeld
Ammonite | Level 13

Here are some Unicode blog posts including a few by me.

https://blogs.sas.com/content/tag/unicode/

 

I notice a grade group and a score group variable. You need to reconcile that.

ANKH1
Pyrite | Level 9

Hi!

I tried using what you suggested in your code:

 

proc format;
   value agefmt 1 = 'Age'
                2 = "< 12"
                3 = "(*ESC*){Unicode '2265'x} 12";
run;

By using (*ESC*) in my code but it did not work.  Thanks, I corrected the variable to grade_group. 

 

Bari_sas
SAS Employee

What results do you get, and do you see any errors or warnings in your .log file? Please post the contents of your log file and a screen shot of the results you're seeing which are incorrect.

 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1253 views
  • 1 like
  • 3 in conversation