Abu Dhabi: Pakistan need 176 runs to win the first Test after New Zealand were dismissed for 249 in their second innings on the third day in Abu Dhabi on Sunday.
To chasing 176, Pakistan close third day on 37 without loss, needed another 139 runs to lead 1-nil in three match series.
Openers Imam-ul-Haq not out on 25* while Mohammad Hafeez playing on eight.
Medium pacer Hasan Ali took his maiden five-wicket haul with 5-45 while leg-spinner Yasir Shah finished with 5-110 -- his 14th five-wicket haul in an innings -- as New Zealand lost their last six wickets for 29 runs.
BJ Watling (59) and Henry Nicholls (55) added 112 for the fifth wicket.
New Zealand made 153 in their first innings to which Pakistan replied with 227 all out.
New Zealand were in danger of losing the Test after three quick wickets fell in the space of just 22 runs in the first session with medium pacer Hasan Ali taking two in the same over.
But Watling survived a leg-before decision on review after umpire Bruce Oxenford raised his finger off Bilal Asif for 15. Watling took full advantage of the reprieve and added 66 in the second session without losing a wicket.
Hasan, who had opener Tom Latham yesterday, trapped a dangerous looking Taylor leg-before with a sharp incoming delivery for 19 and then had Jeet Raval caught behind by wicketkeeper Sarfraz Ahmed for 46.
Raval had added 86 for the second wicket with Kane Williamson who made 37. Raval hit five boundaries in his 120-ball knock.
Resuming at 56-1 New Zealand had pinned hopes on their skipper Williamson. But it was Raval who smashed two boundaries and then took a single off Mohammad Abbas to take New Zealand into the lead.
But just 12 runs into the lead Williamson was bowled by leg-spinner Yasir Shah to a ball that beat the batsman's push and removed the bail.