West Indies, set a target of 153 to win, were 114-5 at close on the fourth day of the third and final Test against Pakistan in Sharjah on Wednesday.
Opener Kraigg Brathwaite was unbeaten on 44 and with him Shane Dowrich was 36 not out as West Indies need another 39 runs for victory with five wickets intact.
West Indies were set up for a consolation win after paceman Jason Holder took a career-best 5-30 and leg-spinner Devendra Bishoo grabbed 3-46 to dismiss Pakistan for 208 in their second innings.
Opener Azhar Ali was dismissed for 91 while Sarfraz Ahmed made 42. Pakistan lead the three-match series 2-0.
Earlier, skipper Jason Holder took a maiden five-wicket haul to set up a likely win for West Indies in the third and final Test against Pakistan in Sharjah on Wednesday.
The right-arm fast bowler finished with 5-30 while leg-spinner Devendra Bishoo took 3-46 to bundle Pakistan out for 208 in their second innings on a weary pitch.
At tea West Indies had wiped 23 off the target without losing a wicket and need another 130 for a consolation win after losing the first two Tests.
Opener Kraigg Brathwaite was 10 not out and with him Leon Johnson was batting on a chancy 12, having been dropped twice in successive overs from paceman Mohammad Amir.
With only a single scored, Johnson on nought edged Amir's fifth delivery of the innings to third slip, where Pakistan skipper Misbah-ul-Haq grassed a simple catch.
Johnson again survived a slip catch on three when Sami Aslam dropped another straightforward opportunity at first slip off a luckless Amir, hurting Pakistan's chances of early wickets.
Earlier, Pakistan's chances of building a good lead ended when they slumped from 159-5 at lunch to lose their last five wickets for just 49 runs.
Opener Azhar Ali fell nine short of his 12th century when he edged Bishoo in the slip after initially deciding to sweep the ball but later changing his mind, only to hand a simple catch to slip.
He batted for 234 balls and hit six fours and a six, adding an invaluable 86 for the fifth wicket with Sarfraz Ahmed, who made 42.
Mohammad Nawaz helped Ali add another 41 for the sixth wicket but fell to Bishoo, who finished with 18 wickets in the series — the most by a West Indian against Pakistan in a three-match series.
Holder then removed the tail, with wickets of Wahab Riaz (one) and Yasir Shah (nought) to improve on his previous best of 3-15 against England at Barbados in May last year.
Amir was foolishly run out after watching the long-on fielder Roston Chase save a six and throwing at the bowler's end with the batsman short of his crease.
Pakistan, trailing by 56 after the first innings, lost Ahmed in the morning session after resuming at a precarious 87-4, just 31 ahead and in danger of defeat.
Ahmed hit four boundaries during an enterprising innings before he chased a wide delivery from Bishoo and edged it to Darren Bravo at slip.
Pakistan lead the three-match series 2-0 after winning the first Test in Dubai by 56 runs and second by 133 runs in Abu Dhabi.