Chapter Contents

Previous

Next
BYTE

BYTE



Returns one character in the EBCDIC collating sequence

CMS specifics: EBCDIC collating sequence


Syntax
Details
Example
See Also

Syntax

BYTE (n)

n
is an integer that represents a particular EBCDIC character. Its value must be between 0 and 255.


Details

Under CMS, the BYTE function returns the nth character in the EBCDIC collating sequence. Some operating environments return the corresponding character in the ASCII collating sequence for this function.


Example

The following DATA step uses the BYTE function:

data;
   x=byte(193);
run;

The example results in x being set to the character A (hexadecimal 'C1'x).

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.