Pakistan accumulated 259-5 on the opening day of the second and final Test in Rawalpindi on Monday, punishing poor catching from South Africa.
South Africa dropped five catches on a turning pitch, which could have put them 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, as the home team seeks a 2-0 series win against the world Test champions.
Pakistan punished poor catching from South Africa to accumulate 259-5.
Author's summary: Pakistan leads with 259-5 on the first day.