Previous Page | Next Page

Informats

$CHARZBw. Informat



Converts binary 0s to blanks.
Category: Character

Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

$CHARZBw.


Syntax Description

w

specifies the width of the input field.

Default: 1 if the length of the variable is undefined. Otherwise, the default is the length of the variable.
Range: 1-32767

Details

The $CHARZBw. informat does not trim leading and trailing blanks in character data before it stores values.


Comparisons

The $CHARZBw. informat is identical to the $CHARw. informat except that $CHARZBw. converts any byte that contains a binary 0 to a blank character.


Examples

input @1 name $charzb5.;

Data Line* Results
EBCDIC ASCII
E7E8E90000
58595A0000
XYZ##
00E7E8E900
0058595A00
#XYZ#
00E700E8E9
005800595A
#X#YZ
* The data lines are hexadecimal representations of codes for characters. Each two hexadecimal characters correspond to one byte of binary data, and each byte corresponds to one character.

** The character # represents a blank space.

Previous Page | Next Page | Top of Page