find the last nonzero record with pagewise reading