Lahore:Inzamam-ul-Haq made a disappointing exit from international cricket on Friday as Pakistan settled for a draw in the second Test against South Africa.
Pakistan - needing a world record 457 runs for victory to level the two-match series - ended up at 316-4 on the final day.
Mohammad Yousuf (63) and captain Shoaib Malik (20) were the unbeaten batsmen at the crease as Pakistan gave up its run-chase after lunch.
A century by Younis Khan (130) on the last day hinted at a chase, but ultimately South Africa won the series 1-0 after recording a 160-run victory in the first test at Karachi last week.
It was South Africa's first away Test series victory against a major subcontinent opponent since beating India in 2000.
"We controlled nine out of 10 days of Test cricket and kept them under pressure," South African captain Graeme Smith said.
"It's been a great team effort with couple of good individual performances too."
Inzamam's (3) last innings in test cricket lasted only two deliveries.
He flicked his first delivery for three runs. In the next over, he attempted a big shot off left-arm spinner Paul Harris but misjudged the line of the ball and was stumped.
"I thought first Test was the pressure game, but now I believe the last one was the more pressure one," Inzamam said.
"Sometimes it does happen, but I am leaving after spending 16 golden years in international cricket."
Inzamam, who played 120 test matches, fell three runs short of breaking Javed Miandad's Pakistan test record of 8,832 runs.
As the 37-year-old Inzamam walked back to the dressing room he waved his bat for the last time to around 5,000 spectators.
All the South African players applauded while Pakistan players lined up on the boundary to give a last send off to their former captain, who ended his career with 8,830 runs with 25 centuries.
Earlier, Khan thwarted South Africa's attempt of making a clean sweep in the series.
"We thought of going at the target, but when we lost (Younis) Khan and Inzamam in quick time, we aborted our plans," said Malik.
"It's a great sign for us that we lost only four wickets in four sessions and we can only improve more from here on," he added.
Resuming at the overnight 108-1, Khan and Kamran Akmal (71) extended their partnership to 161 after Hashim Amla dropped an easy chance when Khan was on 83.
Khan capitalized on the chance and completed his 14th Test hundred off 180 balls that included 14 boundaries. Khan also scored a century in the first test.
Khan gave Pakistan a glimmer of hope when he started the run-chase aggressively. He hit paceman Makhaya Ntini for three successive boundaries in the third over of the day and then drove Kallis for two more fours in the very next over.
The introduction of Harris in the 10th over of the morning slowed the scoring rate and also earned South Africa a much-needed breakthrough when Akmal dragged one back onto his stumps.
Khan and Yousuf gave up the chase in the second session and added 89 runs in nearly two and a half hours before Khan's nearly six-hour innings off 246 balls with 16 boundaries ended when he edged Kallis behind the wicket.