The Pakistani cricketers produced an improved batting effort in their second innings to make sure the opening Test against South Africa in Johannesburg goes into a 4th day.
Pakistan are 183 for 4 in their second innings chasing 480 for victory.
While they still need 297 runs to win, rain is forecast on the final two days leaving all results a possibility.
Earlier South Africa declared their first innings closed on 275 for 3.
Pakistan were dismissed for for 49 in their first innings, the third time the Proteas have dismissed a side for less than 50 in just over a year.