BADCHAR, XXX is not a valid character in the YYY encoding form.
Run Time Error: GT.M triggers this error when it encounters a byte sequence that is not legal according to the given character set of the current device.
Action: Correct your application or its configuration to handle this situation. Depending on application requirements, the code may need handle the illegal byte sequence or disable the triggering of BADCHAR error by VIEW "NOBADCHAR" command. If the error is from a READ or WRITE command to a device other than $PRINCIPAL, the application can perform I/O in M-mode and then handle any needed conversion, correction, or other manipulation. For more information, refer to ther Programmer's Guide.