Robin Peterson scored 84 runs as South Africa wiped out most of their deficit and trail by just 12 runs when they were bowled out on day three of the second Test.
South Africa reduced the first innings deficit to a more manageable 90 and were 247 for seven at lunch on day three of the second Test against Pakistan.