DIAGTRUNC

DIAGTRUNC affects whether the compiler issues a severity-4 (warning) diagnostic message for MOVE statements with numeric receivers when the receiving data item has fewer integer positions than the sending data item or literal.

Syntax

Read syntax diagramSkip visual syntax diagramDIAGTRUNC=*NOYES
Default
DIAGTRUNC=NO
YES
Causes the compiler to issue a severity-4 (warning) diagnostic message for MOVE statements with numeric receivers when the receiving data item has fewer integer positions than the sending data item or literal.
NO
Does not cause the compiler to produce a severity-4 message.
Note:
  • The diagnostic message is also issued for moves to numeric receivers from alphanumeric data names or literal senders, except when the sending field is reference modified.
  • There is no diagnostic message for COMP-5 receivers, nor for binary receivers when you specify the TRUNC(BIN) option.