DUBAI, United Arab Emirates (AP) — Sri Lanka is hoping rain does not disrupt its bid to win the second test against Pakistan on the final day after steadily progressing to 35-0 at lunch, still needing a further 102 on Sunday.

Opening batsmen Dimuth Karunaratne was batting on 18 and Kausal Silva was not out on 14 under overcast conditions as Sri Lanka looks to go 1-0 up in the three-match series.

Pakistan's tail resisted for an hour and added 29 to its overnight 330-7 before it was bowled out for 359.

Fast bowler Suranga Lakmal claimed all three wickets to finish with a career best 4-78 and wicketkeeper Prasanna Jayawardene equaled the Sri Lanka record of nine catches in a test match when he had Rahat Ali caught behind.

Sarfraz Ahmed, 70 overnight, tried to farm the strike but could add only four to his overnight score before Lakmal bowled him in the fourth over of the day off a delivery that swung in and went between the bat and pad.

Ahmed batted for 3-1/2 hours, hitting seven fours in his 142-ball maiden test fifty.

Jayawardene equaled Amal Silva's 1985 record of nine catches against India when he gathered a Rahat Ali edge. Silva achieved the feat twice in the same series.

Lakmal wrapped up the innings by clean bowling Junaid Khan with Saeed Ajmal remaining unbeaten on 21.