The BIT-OF Function

The BIT-OF function returns an alphanumeric character string of '1' and '0' characters, which represents the binary value of each byte in the argument used on input.
The type of the function is alphanumeric.

General Format


  1. argument-1 must be a data item, literal, or an intrinsic function result of any data class.

Returned Values

  1. An alphanumeric character string consisting of the binary representation of each byte in argument-1.
  2. The length of the character string returned, in bytes, is eight times the length of argument-1, in bytes.