Karachi: Yasir Shah bagged two wickets in the last session to bring Pakistan back in the game again as South Africa finished Day 3 at 187-4, with a lead of 29 runs.
Yasir bagged Rassie van der Dussen and Faf Du Plessis in quick successions as Pakistan took off after a frustrating first two sessions with taking just a wicket.
Aiden Markram (74) and Rassie van der Dussen (64) scored 127 runs together for the second to put a solid reply from the visitors.
Markram was picked up by debutant Nauman Ali with Abid Ali taking a second good catch at silly point.
Openers Aiden Markram and Elgar provided a steady start to South Africa as they scored 37-0 at Lunch against Pakistan. Both scored 48 runs together before Elgar walked back.
Dean Elgar was pushed for a sweep shot off Yasir Shah but he failed to acclimatize and Rizwan took a blinder diving forward.
Elgar scored 29 off 45 balls with the help of four boundaries.
Yasir bagged three wickets while Nauman took a wicket for the hosts.
Resuming Pakistan’s overnight score of 308-8, Nauman Ali (24) and Yasir Shah (38*) scored 70 runs on Day 3 as Pakistan took a 158-runs lead against the visitors.
Pakistan: Abid Ali, Imran Butt (Debut), Azhar Ali, Babar Azam, Fawad Alam, Faheem Ashraf, M Rizwan, Nauman Ali (Debut), Yasir Shah, Hassan Ali, Shaheen Shah Afridi
South Africa: Aiden Markram, Dean Elgar, Faf Du Plessis, Rassie van der Dussen, Temba Bavuma, Quinton De Kock, George Linde, Keshav Maharaj, Kagiso Rabada, Anrich Nortje, Lungi NGini