Pakistan have started their second innings against Sri Lanka facing a 223-run deficit, despite taking six wickets during the morning session of day three in Dubai.
Sri Lanka started the day on 318-4, with Mahela Jayawardene unbeaten on 106, but his partner at the crease Angelo Mathews quickly fell at the start of play.
Jayawardene had advanced to 129 when he was bowled by Saeed Ajmal to leave Sri Lanka on 341 with four men remaining.
Wickets began to fall at regular intervals, but the tourists managed to end their innings with a sizable advantage over their opponents.
The Pakistan openers had three overs to survive until lunch, but Rangana Herath removed Ahmed Shehzad with the penultimate ball before lunch to leave them on 11-1.