Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


Returns the smallest numeric value from the elements of a dynamic array.




dynarray An expression that resolves to a dynamic array of numeric values.


The MINIMUM function compares the values of all of the elements in a dynamic array and returns the smallest numeric value. The MINIMUM function compares all dynamic array values, regardless of the dynamic array levels of the elements. If an element value missing or has a null string or non-numeric value, MINIMUM parses its value as 0 (zero).


The following example uses the MINIMUM function to return the smallest numeric value in a dynamic array:

PRINT MINIMUM(a);    ! returns 7
Copy code to clipboard

See Also