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
Rhodochrosite | Level 12

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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 587 views
  • 1 like
  • 3 in conversation