One of several exception codes might be returned in special register XML-CODE during XML generation. If one of these exceptions occurs, control is passed to the statement in the ON EXCEPTION phrase, or to the end of the XML GENERATE statement if you did not code an ON EXCEPTION phrase.
| Code | Description |
|---|---|
| 400 | The receiver was too small to contain the generated XML document. The COUNT IN data item, if specified, contains the count of character positions that were actually generated. |
| 401 | A multibyte data-name contained a character that, when converted to Unicode, was not valid in an XML element name. |
| 402 | The first character of a multibyte data-name, when converted to Unicode, was not valid as the first character of an XML element name. |
| 403 | The value of an OCCURS DEPENDING ON variable exceeded 16,777,215. |
| 410 | The external code page is not supported for conversion to Unicode. |
| 411 | The external code page is not a supported single-byte EBCDIC code page. |
| 412 | The external code page is not a supported single-byte ASCII code page. |
| 413 | The document data item was alphanumeric, but the runtime locale was not consistent with the compile-time locale. |
| 600-699 | Internal error. Report the error to your service representative. |
related tasks
Handling errors in generating XML output