BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jakarman
Barite | Level 11

remember to have seen a solution by Cynthia Zender using ODS and using the escape character.
Do not know remember the related limitations. This is an old presentation http://www2.sas.com/proceedings/forum2007/099-2007.pdf

Unicode is also requiring a DBCS thinking approach instead of SBCS. I think with the ods method you should able to solve it as long as you needed char is in the latin-1 char-set or part of the html-chars .
 

---->-- ja karman --<-----
jakarman
Barite | Level 11

Anna_h , You are possible struck by encoding tables of the single byte characterset.

I have seen Chyntia Zender giving some very good answers on this topic, also on forums at linkedin.

The ODSescape sequence is very attractive (titles)


The issue with SBCS is that they can differ from several countries as of national language support. The Latin-1 is a well known in ASCII world (Windows/Unix). The B3 is used in mainframes for superscript 3 in Ebcdic world. The AE is the sign for the contracted >= symbol there.
Html is mostly based on ASCII by standard guidelines and that is knowing Unicode and more.
Are you running on a IBM Mainframe using that with codepage 437?   

---->-- ja karman --<-----
GraphGuy
Meteorite | Level 14

OK - Here's a solution using all "SAS/Graph software fonts" (that are built-in to SAS, even in very early versions).  As before, this assumes you're using gtitles (ie, the title is part of the graph/png/whatever image, rather than being written outside the graph as html)...

It uses the SAS 'math' font, and the >= character is character "M" of that font (which I've never used before in 20+ years), as described on the following doc page:

SAS/GRAPH(R) 9.2: Reference, Second Edition

title1 font=swiss "Here is the " font=math "M" font=swiss " character";

proc gplot data=sashelp.class;
plot height*weight;
run;

jakarman
Barite | Level 11

That ^ has a lot to do with:

" SPECIFYING AN ESCAPE CHARACTER FOR ODS

Before you can apply or perform in-line formatting with ODS, however, you must first tell ODS what character will be used as the ODS ESCAPECHAR character value (ESCAPECHAR). There are two default escape character sequences: (*ESC*) and '03'x. The default (*ESC*) was new in SAS®9, while '03'x was available starting in SAS 8.2; however, both of those ESCAPECHAR values have too many keystrokes for me. I prefer setting a single character as my ESCAPECHAR, such as:

ods escapechar='^';  "

The byte(179) should return b3 in the code page, same as Rob-s approach.

The latin-1 Unix is defined as ISO/IEC 8859-1 - Wikipedia, the free encyclopedia  (b3 again superscript 3)  

---->-- ja karman --<-----

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 18 replies
  • 3000 views
  • 6 likes
  • 3 in conversation