Abu Dhabi: Sri Lanka were struggling in the first Test against Pakistan as they closed the fourth day at 69-4 in their second innings in Abu Dhabi on Sunday.
Kusal Mendis was not out on 16 and nightwatchman Suranga Lakmal was unbeaten on two, with Sri Lanka leading by 66 runs with six wickets intact.
Pakistan leg-spinner Yasir Shah had figures of 2-25.
Earlier, Sri Lankan spinner Rangana Herath returned with five wickets but a half century from Haris Sohail on his debut saw Pakistan take a three-run lead.
The wily left-armer finished with 5-93 in a marathon 40 overs but left-hander Sohail fought through his 76 run knock to take Pakistan to 422 all out in reply to Sri Lanka's first innings total of 419.
The slow turn on a flat wicket means the Test heads for a draw unless Sri Lanka flop in the second innings.
Sohail added an invaluable 50 for the ninth wicket with tail-ender Hasan Ali to lift Pakistan from 340-8 and deprived Sri Lanka of a healthy lead.
Sohail hit seven fours and two sixes before holing out to paceman Nuwan Pradeep who finished with 2-77.
Herath gave his team the much-needed wicket of a resolute Ali, luring him into an uppish drive which was brilliantly caught at short mid-wicket by a diving Kusal Mendis.
Azhar's defiant knock lasted more than five hours and included four boundaries, but with his dismissal Pakistan's hopes of building a lead faded.
Hasan whirlwind 25-ball 29 had three sixes and two boundaries.
Paceman Suranga Lakmal then came into his own, bowling Pakistan skipper Sarfraz Ahmed off an inside edge for 18 before trapping Mohammad Amir leg before for four.
Lakmal finished with 2-42.