Australia were set a target of 448 to win when South Africa declared their second innings on the fourth morning of the second Test at St George's Park today.
Australia were 31 for no wicket at lunch.
Hashim Amla completed his 21st Test century - and his fifth against Australia - and finished on 127 not out when captain Graeme Smith declared at 270 for five.
More From This Section
Australia were left to see out 71 overs on the fourth day and another potential 90 on Monday - but rain is forecast for the final day.
Chris Rogers and David Warner made a confident start to Australia's second innings, with Rogers striking three boundaries as he reached 21 not out at lunch, the first time he has reached double figures in the series.
South Africa took the field without left-arm bowler Wayne Parnell, who suffered a groin injury in the first innings, and were left with three specialist fast bowlers as they sought to level the three-match series.
Australia won the first Test in Centurion by 281 runs.
Amla, who was 93 not out overnight, hit 16 boundaries in a 176-ball innings.
His tally of five hundreds against Australia equalled a South African record shared by Eddie Barlow, Graeme Pollock, Jacques Kallis and AB de Villiers.