South Africa will have to dig deep if they are to avoid defeat in the first Test after being reduced to 72 for four wickets in their second innings, still trailing Pakistan by 121 runs, in Abu Dhabi on Wednesday.
Tillakaratne Dilshan outshone Hashim Amla's 14th One-Day International century to steer Sri Lanka to a series-levelling 87-run win over South Africa in the second match at Pallekele Stadium on Wednesday.
Hashim Amla notched his 20th Test century but three wickets for 34-year-old debutant Zulfiqar Babar allowed Pakistan to restrict South Africa to 245 for eight on the opening day of the first Test in Abu Dhabi on Monday.
Outstanding centuries from Quinton de Kock and captain AB de Villiers helped South Africa coast to a series-clinching 82-run win over Sri Lanka in the third and final one-day international on Saturday.
Khurram Manzoor was unbeaten on 131 and Pakistan ended on 263 for three, a lead of 14 runs over South Africa who were bowled out for 249 early in the morning session.
Hashim Amla's 13th One-day International century and a clinical performance in the field carried South Africa to a comfortable 75 run victory in the opener of their three-match series against Sri Lanka on Sunday.