S. Africa bowled out for 517 in second Pakistan Test
South Africa captain Graeme Smith gestures as he leaves the ground after his dismissal for 234 by Saeed Ajmal of Pakistan on the third day of the second Test in Dubai on October 25, 2013
Resuming on 460-4, South Africa lost AB de Villiers for 164 and Graeme Smith on 234 after they put on a record 338-run partnership.
South Africa took a huge 418-run lead over Pakistan's first innings total of 99.
For Pakistan off-spinner Saeed Ajmal finished with 6-151 while paceman Mohammad Irfan took 3-102 after an extended two-and-a-half hour session due to Friday prayers.
Pakistan lead the two-match series 1-0 after winning last week's first Test in Abu Dhabi by seven wickets.