BYTE Function


Returns one character in the ASCII or the EBCDIC collating sequence

Category: Character

See: BYTE Function in the documentation for your operating environment.

Syntax

BYTE ( n )

Arguments

n

  • specifies an integer that represents a specific ASCII or EBCDIC character.

  • Range: 0-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.

For EBCDIC collating sequences, n is between 0 and 255. For ASCII collating sequences, the characters that correspond to values between 0 and 127 represent the standard character set. Other ASCII characters that correspond to values between 128 and 255 are available on certain ASCII operating environments, but the information those characters represent varies with the operating environment.

Examples

SAS Statements

Results

 
 

ASCII

EBCDIC

 

----+----1----+----2

----+----1----+----2

x=byte(80);

   

put x;

P

&

See Also

Functions:

  • 'COLLATE Function' on page 443

  • 'RANK Function' on page 779




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net