In a DATA step, the
default length of the target variable for the CHAR function is 1.
If
position has a missing value, then CHAR returns
a string with a length of 0. Otherwise, CHAR returns a string with
a length of 1.
If
position is less than or equal to 0, or greater
than the length of the string, then CHAR returns a blank. Otherwise,
CHAR returns the character at the specified position in the string.