Captain Misbah-ul-Haq became the first Pakistan batsman left stranded on an unbeaten 99 in a test on Monday but the visitors still seized control of the first match against West Indies in Jamaica.
West Indies were reeling on 93 for four wickets in their second innings, still 28 runs behind Pakistan’s first-innings total of 407, at stumps on day four in Kingston.
Pakistan leg-spinner Yasir Shah took all four wickets in the second innings, leaving the West Indies a huge task to avoid defeat on the final day on Tuesday.
Earlier, Misbah was denied his 11th career ton when number 11 Mohammad Abbas was adjudged lbw for 1 to end a valuable 34-run 10th-wicket stand.
The 42-year-old Misbah, who will retire after the current three-test series, is the sixth player to finish a test on 99 not out and the first since South African Andrew Hall in 2003.
Shannon Gabriel and Alzarri Joseph were the pick of the West Indies bowlers, collecting three wickets apiece.