Sign in

docs RPG Reference

%MINARR (Minimum Element in an Array)

%MINARR (Minimum Element in an Array)

%MINARR(array {: start-index {:number-of-elements}})

%MINARR returns the index of the minimum value in the array, or the subsection of the array identified by the start-element operand and the number-of-elements operand.

See %MAXARR and %MINARR (Maximum or Minimum Element in an Array) for detailed information about both %MAXARR and %MINARR.