UD MAX - Unsave Document - get Max/Min from document column

(05/26/13)

PURPOSE

To find maximum and minimum from specified column of a document file. Useful to find the highest value in a selection file.   Example.

SEE ALSO

UD N [Unsave Document - get key Numbers from file]

USAGE

.OPERATION: UD MAX [maxval],[minval]

[ This operation can return up to 2 optional register variables:
Variable Example Receives
First [max] Minimum value found
Second [min] Minimum value found

.DOCUMENT FILE: DOC555
[Enter the name of an existing document file. Can be an incore doc. file.]

REGISTER COLUMN TO BE SEARCHED (0 = KEY): 2 [Can search key column (0) or any of the register columns in the document file. Values will be reported in Results file.]

NOTES

  1. Operation may be slow on large doc. files.

SUBROUTINES

RDDOCN, OPENDOC, LUNDOC

CALLER

DRIV3