Younis Khan was unbeaten on 133, his 24th Test century, and Asad Shafiq was on 55. The pair have so far put on 105 for the fifth wicket.
Skipper Misbah-ul Haq scored 31 in a 100-run stand with Khan after Pakistan were reduced to 56-3.