Kbase P43218: Error 9891 doesn't set ERROR-STATUS:ERROR flag
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/3/2004 |
|
Status: Unverified
GOAL:
Error 9891 doesn't set ERROR-STATUS:ERROR flag
FACT(s) (Environment):
IBM AS/400 (RISC)
FACT(s) (Environment):
Progress/400 DataServer
FACT(s) (Environment):
Progress 9.1x
SYMPTOM(s):
Overflow occurred for value <value> because the field length is <length>. The character field was truncated (9891)
ERROR-STATUS:ERROR flag does not get raised.
CAUSE:
Error 9891 raises the error condition that is not fatal: the transaction continues and ERROR-STATUS:ERROR flag is not set. Problem with the error status flag is currently being investigated by Development.
FIX:
The character fields on AS/400 (that we generate via DDS description) are fixed. So the error 9891 occurs whenever the string must be truncated to fit the field length. In order to suppress it use NO-ERROR option. As a workaround to trap the message occurrence use:
ERROR-STATUS:NUM-MESSAGES > 0