The BIT-TO-CHAR function returns a character string that represents a bit pattern supplied on input.
The function type is alphanumeric.
General Format
Arguments
- argument-1 must be an alphanumeric literal, alphanumeric data item, or alphanumeric group item.
- argument-1 must consist only of the characters '0' and '1'.
- The length of
argument-1 must be a multiple of 8 bytes.
Returned Values
- A character string consisting of bytes representing the sequence of '0' and '1' characters in
argument-1.
- The length of the result string is equal to the length of the input string divided by 8.