Define the maximum inclusive value allowed and depending on the data type where it is set, namely all numeric, date and time data types.
DEFINE myCode SMALLINT ATTRIBUTES(XSDShort, XSDMaxInclusive="1000", XMLName="MyCode")
DEFINE myRate DECIMAL(4,2) ATTRIBUTES(XSDDecimal, XSDMaxInclusive="299.99", XMLName="MyRate")