Sri Lanka, resuming at 254-3, had reached 355-4 at tea on the second day of the second and final Test against Pakistan in Dubai on Saturday.
Opener Dimuth Karunaratne was unbeaten on 170 and with him Niroshan Dickwella 47 not out after Dinesh Chandimal fell for 62 in the session.
Leg-spinner Yasir Shah has figures of 3-120.