Pakistan punished poor catching from South Africa to accumulate 259-5 on the opening day of the second and final Test in Rawalpindi.
Had the tourist not dropped five catches on a turning pitch, it would have been in a better position after Pakistan won the toss and batted.
Saud Shakeel and Salman Agha will resume on Tuesday unbeaten on 42 and 10, respectively, with the home team seeking a 2-0 series win against the world Test champions.
Pakistan is seeking a 2-0 series win against the world Test champions.
Author's summary: Pakistan leads with 259-5 on the opening day.