The
maxvalue function returns the maximum valid value for an item or value set. If a numeric
item_name is provided, the function looks at the current value set for the item, or if no value set exists, looks at the item itself (returning a maximum value based on the item's number of digits). If a numeric
value_set_name is provided, the function returns the maximum range or discrete value in the value set.
The function returns the maximum valid value for an item or value set.