Help using Base SAS procedures

Usage of special ASCII characters in SAS dataset

Reply
New Contributor
Posts: 4

Usage of special ASCII characters in SAS dataset

Hi everyone,

I am trying to insert ASCII chatacters into a sas dataset. I have a column with numeric values, and if the numeric value is missing, then I want to crate a new character column and replace the missing value with the infinity symbol. I tried using the BYTE function, but it has a list of 255 special characters, where I could not find infinity. Any input will be appreciated.

Super User
Posts: 7,782

Re: Usage of special ASCII characters in SAS dataset

You will need SAS DBCS, and run it with UTF-8 encoding. Then you can specify the infinity symbol as 'e2889e'x;

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 1 reply
  • 342 views
  • 0 likes
  • 2 in conversation