i = seekmin(multiple-item condition[,numeric-expr]);
The seekmin function returns the occurrence number of the item with the lowest value that satisfies a certain condition in a multiply occurring item. If numeric-expr is included, the function starts searching the multiply occurring record for a true condition starting at occurrence numeric-expr.
The function returns the occurrence number of an item that meets the condition or 0 if no such item is found.
numeric ptrEldest = seekmax(AGE
ptrEldest12_64 = seekmax(AGE in 12:64),
ptrYoungest65plus = seekmin(AGE in 65:95);