NL021: Literal value truncated at runtime
NL021: Literal value truncated at runtime
type: code-smell
priority: minor
#pitfall
#confusing
Description
The value of this literal is truncated at runtime. This will raise unexpected results.
Non compliant
DEFINE DATA LOCAL
1 #VAR (A1)
END-DEFINE
#VAR := 'Hi'
WRITE #VAR
END
Compliant
DEFINE DATA LOCAL
1 #VAR (A1)
END-DEFINE
#VAR := 'H'
WRITE #VAR
END