Australia trail Pakistan by 452 runs with all ten wickets intact, but they face a big battle ahead of them with Yasir expected to pose the main threat.
A sparkling hundred from left-hander Sohail and a polished 80 from Asad Shafiq enabled Pakistan to build on an overnight score of 255 for 3, with nightwatchman Mohammad Abbas (one) the only wicket to fall in the morning session.
Sohail's patient six-hour knock featured eight fours and two sixes, as he added 150 for the fifth wicket with Shafiq who was unlucky to miss out on his 10th century. The pair frustrated the Australian attack with some solid batting as Pakistan reached 329-4 at lunch, with both in sight of centuries.
But Shafiq fell to the leg-spin of Marnus Labuschagne minutes before tea as he edged a turning ball to wicketkeeper Tim Paine for the debutant's first wicket. Shafiq hit nine boundaries and a six in his 278 minutes at the crease.
Sohail did to get to three figures though, hitting a six off spinner Jon Holland before cutting him to third man for two to complete his century.
Sohail was pleased to go on and post a big score after regularly making several promising starts before getting out earlier in the year.
"I was getting out on 30-40 runs on the tour of England (in May-June this year)," said Sohail.
"So I wanted to get out of that panic situation and I am happy that I have done that today.
"It's always a big pride to score a Test hundred for your country and I have worked really hard to reach this far," said Sohail, who was sidelined for a two-year period with a knee injury in 2015.
The second and final Test will be played in Abu Dhabi from October 16.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)