Chapter Contents

Previous

Next
$EBCDICw.

$EBCDICw.



Converts EBCDIC character data to native format

Category: Character


Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

$EBCDICw.

Syntax Description

w
specifies the width of the input field.
Default: 1 if the length of the variable is undefined; otherwise, the length of the variable
Range: 1-32767


Details

If EBCDIC is the native format, no conversion occurs.


Comparisons


Examples

input @1 name $ebcdic3.

Data Lines Results*
----+----1
ASCII EBCDIC
qrs
717273
9899A2
QRS
515253
D8D9E2
+;>
2B3B3E
4E5E6E
*The results are hexadecimal representations of codes for characters. Each two hexadecimal digits correspond to one byte of binary data, and each byte corresponds to one character value.


Chapter Contents

Previous

Next

Top of Page

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