The SAS Output Delivery System and reporting techniques

Minus sign hex code?

Reply
Occasional Contributor
Posts: 18

Minus sign hex code?

I am using proc report to produce a PDF output.
I would like to insert a minus sign, not a dash, in a title.
What hex code should I use?

Thanks,

Masoud
Super Contributor
Super Contributor
Posts: 3,174

Re: Minus sign hex code?

Suggested Google search argument might be:

ascii code +"minus sign"

Scott Barry
SBBWorks, Inc.
Occasional Contributor
Posts: 18

Re: Minus sign hex code?

For the record "97"x hex code did it.

Masoud
SAS Employee
Posts: 50

Re: Minus sign hex code?

Sorry for late response as I've been on vacation.  The best way in ODS PDF is to use the UNICODE inline function.  To find the minus symbol you need to bring up the character map (on windows) to see all the available glyphs for a certain font.  For example.... the minus sign is '002D' in Arial.

In your SAS code you could do this ... Title 'Here is a minus sign ^{unicode 002D}';  ** don't forget to set your escapechar first **

Hope this helps!

Scott

Ask a Question
Discussion stats
  • 3 replies
  • 641 views
  • 0 likes
  • 3 in conversation