Thu Jan 28 1999

ARMRCALC

Subject: ARMRCALC11

Function: min(y,z)


x=min(y,z)

Purpose

Use the minimum function when you want to select the smaller of two values.

Example

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=