In reply to Rick Wicklin.

Is it possible to use this function as a loop that ends once the condition is met? I am trying to use this in sas egp. If not, would you be able to suggest another function that does that?