BYTE Function: Windows

Returns one character in the ASCII collating sequence.
Category: Character
Windows specifics: Uses the ASCII code sequence
See: BYTE Function in SAS Functions and CALL Routines: Reference

Syntax

BYTE(n)

Required Argument

n
specifies an integer that represents a specific ASCII character. The value of n can range from 0 to 255.

Details

If the BYTE function returns a value to a variable that has not yet been assigned a length, by default the variable is assigned a length of 1.
Because Windows is an ASCII system, the BYTE function returns the nth character in the ASCII collating sequence. The value of n can range from 0 to 255.
Any programs using the BYTE function with characters above ASCII 127 (the hexadecimal notation is '7F'x) can return a different value when used on a PC from another country as characters above ASCII 127 are national characters and they vary from country to country.