Subject: ARMRCALC11
Function: min(y,z)
Use the minimum function when you want to select the smaller of two values.
In the following example we set flag=1 if the record has no redundant "fname" value. Flag will be set to 2 if there are 2 or more redundant occurrences of a given "fname" value.
columns= fname
;
; set flag=1 globally
;
calc_start=
flag=1
calc_end=
;
; count records by fname
; set flag=2 if 2 or more redundancies occur
;
calc_start=
flag=min(2,line_sum(flag))
calc_end=