JSON GENERATE exceptions
One of several exception codes might be returned in the JSON-CODE
special
register during JSON generation. If one of these exceptions occurs,
control is passed to the statement in the ON EXCEPTION
phrase,
or to the end of the JSON GENERATE
statement if you
did not code an ON EXCEPTION
phrase.
Exception code (decimal) | Description |
---|---|
1 | The receiver was too small to contain the generated JSON text.
The COUNT IN data item, if specified, contains the
count of character positions that were actually generated. |
500 - 599 | Internal error. Report the error to your service representative. |