Boolean Conversion (B)
The Boolean conversion code converts between the internal representation of True and False and the external representation Y or N.
The full format of this conversion code is
Used with OCONV() for output conversion, this conversion code returns N for False (including a null string) or Y for True.
Used with ICONV() for input conversion, this conversion code returns False for a null string or a string containing the single character N in upper or lower case. It returns True for a string containing the single character Y in upper or lower case. Any other input value returns the original data and sets an error status of 1.