RAWALPINDI, Pakistan: Aggressive batting by Aiden Markram and Rassie van der Dussen gave hope to South Africas bid to level the series after Pakistan set the tourists a challenging target of 370 runs on the fourth day of the second and final cricket test on Sunday.
Markram (59) and van der Dussen (48) both stayed unbeaten and carried the Proteas to 127-1 at stumps on day 4 as both batsmen added 94 runs and dominated the last session of the day.
South Africa, which lost the first test by seven wickets but has not lost a test series against Pakistan in 18 years, needs a further 243 runs on the last day on a seemingly batsman-friendly pitch.
Wicketkeeper-batsman Mohammad Rizwan (115) earlier hit an unbeaten maiden test century and shared a record-breaking ninth-wicket stand with Nauman Ali before Pakistan was bowled out for 298 for an overall lead of 369 runs.
But Markram and van der Dussen launched a counterattack against spinner Nauman Ali and Pakistan’s two fast bowlers Hasan Ali and Faheem Ashraf by striking 17 boundaries between them.
Pakistan had made an early inroad when Dean Elgar (17) threw away his wicket before tea as the left-hander chased a wide delivery from Shaheen Afridi (1-22) and was caught behind. Markram and van der Dussen then added a brisk 94 runs to bring South Africa back into contention.
Markram took 22 balls before he got off the mark, but then raised his 5th test half century off the next 49 deliveries with eight fours and two sixes. Van der Dussen also drove and pulled with ease and has eight fours.
Rizwan smashed 15 boundaries in his knock of 115 off 204 balls in nearly five hours before Pakistan was bowled out after lunch.
Left-arm spinner George Linde (5-64), playing in his third test match, took a maiden five-wicket haul and Keshav Maharaj picked up 3-118.
Pakistan was leading by 200 when it resumed on 129-6, but Rizwan got invaluable support from tailenders against scrappy South Africa fielding.
Yasir Shah (23), who was dropped twice, had a 53-run stand with Rizwan before he was caught behind off Linde. But it was No. 10 batsman Naumans defiance for 25 overs that frustrated South Africa the most.
Nauman, who hit two sixes against the spinners in scoring 45 off 78 balls in a knock that also included six fours, shared a record-breaking 97-run stand with Rizwan.
The partnership bettered Pakistans previous record ninth-wicket stand against South Africa when Azhar Mahmood and Shoaib Akhtar featured in a 80-run stand at Durban in 1998.
Rizwan raised his half century off 113 balls before lunch and then reached his hundred off 185 balls when he pushed Linde to cover point for a single.
Rizwan started the day with an imperious cover drive boundary off fast bowler Andrich Nortjes first ball and also used his feet well against both spinners by playing sweep shots and drives to deny South Africas ambitions of keeping its victory target below 300 runs.
Nauman, who made his test debut in the first test at the age of 34, missed out on his maiden fifty when he was finally caught at midwicket while attempting a pull against Kagiso Rabada, who finished with 2-34.
Earlier, Hasan Ali (5) fell leg before wicket to Maharaj in the days sixth over before two dropped catches allowed Shah to add 53 valuable runs with Rizwan.
Captain Quinton de Kock couldnt grab a faint edge behind the wicket when Shah was on 10 and then Linde couldnt hold on to a tough one-handed catch off his own bowling when Pakistans lead was 257.
South Africa also dropped two catches late on the third day that enabled Pakistans lower order to make a strong comeback after the tourists had fallen to 76-5.
Pakistan won the first test by seven wickets and has not beaten the Proteas in a home test series since 2003.
More AP sports: https://apnews.com/apf-sports and https://twitter.com/AP_Sports