The decision to retain the current record is based on the value of a variable (Age) in the next record. If the next record has Age>30, then the current whole record should be kept. Is there any statement to deal with this?
Policy Location Year Age
142 12 1978 32
143 05 1980 31
144 17 1990 20
So in the output, the first record should be kept, and the second one deleted.