South Africa have been set a target of 180 runs to win the third one-day international against Pakistan in Centurion.
The visitors were bowled out for 179 runs in 46.5 overs in their innings, with Misbah-ul-Haq making an unbeaten 79.
The rest of the Pakistani batsmen failed to make any considerable impact, although Umar Amin and Sohaib Maqsood scored 25 runs each.
Vernon Philander was the pick of the South African bowlers as he took three wickets for 26 runs from his 10 overs, while Lonwabo Tsotsobe, Ryan McLaren and Imran Tahir picked up two wickets each.