$EBCDICw. Format

Converts native format character data to EBCDIC representation.
Category: Character
Alignment: left

Syntax

$EBCDICw.

Syntax Description

w
specifies the width of the output field.
Default:1
Range:1–32767

Details

If EBCDIC is the native format, no conversion occurs.

Comparisons

  • On ASCII systems, $EBCDICw. converts ASCII character data to EBCDIC.
  • On all other systems, $EBCDICw. behaves like the $CHARw. format.

Example

put name $ebcdic3.;
Value of name
Result 1
qrs
9899A2
QRS
D8D9E2
+;>
4E5E6E
1The results are shown as hexadecimal representations of EBCDIC codes for characters. Each two hexadecimal characters correspond to one byte of binary data, and each byte corresponds to one character.