First Test, Karachi (day five, close):
Sri Lanka 644-7 & 124-5 drew with Pakistan 765-6
Younus was out 24 runs short of Hanif Mohammad's Pakistan record of 337
Pakistan captain Younus Khan failed in his quest to beat Brian Lara's world record Test score of 400 as Sri Lanka held on to draw the first Test.
Younus added just seven runs to his overnight score of 306 before he was bowled by Dilharo Fernando for 313.
Kamran Akmal hit a career-best 158 not out before the hosts declared on 765-6, their highest Test score.
Sri Lanka stumbled to 45-3 sparking hopes of a Pakistan victory, but Kumar Sangakkara's 65 steadied the innings.
With the game destined for a draw, the morning session on the final day was all about whether Younus would eclipse West Indian Lara's 400 not out that he set against England in Antigua in 2004.
But hopes of seeing history were ended early on when Fernando got one to nip back between bat and pad before hitting the stumps.
It left Younus 24 runs short of Hanif Mohammad's 337, which was set in 1958 against the West Indies in Barbados, and remains the highest score by a Pakistani, eight runs ahead of Inzamam-ul-Haq's 329 against New Zealand in 2002.
HIGHEST INDIVIDUAL TEST INNINGS SCORES
400: Brian Lara* (WI)
380: Matthew Hayden (Aus)
375: Brian Lara (WI)
374: Mahela Jayawardene (Sri)
365*: Garfield Sobers (WI)
364: Len Hutton (Eng)
340: Sanath Jayasuriya (Sri)
* denotes not out score
His innings spanned 836 minutes and featured 27 boundaries and four sixes on the batsman-friendly pitch.
Sri Lankan players, led by captain Mahela Jayawardene congratulated him as he trudged off to the pavilion with Pakistan still 48 runs behind their first innings total.
Akmal soon erased that deficit and carted part-time off spinner Malinda Warnapura for a six to bring up his sixth Test century before smashing another off Tillakaratne Dilshan to push Pakistan past 700.
The hosts then surpassed their previous highest Test score of 708, achieved against England at the Oval in 1987.
Another six, off Ajantha Mendis, helped Akmal reach 155, his highest score in Test cricket.
At the other end, Yasser Arafat, playing in only his second Test, had provided fine support and reached his maiden Test half-century before the declaration was made with Pakistan 121 runs ahead.
Sri Lanka were left with a maximum of 42 overs to face and a draw looked inevitable.
But the visitors were rocked when Umar Gul accounted for Malinda Warnapura and Dilshan, while debutant Tharanga Paranavitana was run out for nine as they stumbled to 45-3.
Sangakkara and Jayawardene steadied the Sri Lankan second innings and although Danish Kaneria removed them both to leave them 120-5, they were only one run behind Pakistan.
Thilan Samaraweera and Prasanna Jayawardene then played out the remaining eight overs without incident to save the match.
Pakistan have put all-rounder Shahid Afridi and pace bowlers Sohail Tanvir and Abdur Rauf on standby for the second Test which begins in Lahore on Sunday.
Off-spinner Saeed Ajmal and opening batsman Nasir Jamshed have also been added to the 15-man squad that was selected for the first Test, however, the quintet will not travel to Lahore unless needed.
Pakistan (from): Younis Khan (captain), Salman Butt, Khurram Manzoor, Misbah-ul-Haq, Shoaib Malik, Faisal Iqbal, Kamran Akmal, Yasir Arafat, Sohail Khan, Danish Kaneria, Umar Gul, Ahmed Shahzad, Asim Kamal, Fawad Alam and Mohammad Talha.
Reserves: Shahid Afridi, Nasir Jamshed, Sohail Tanvir, Saeed Ajmal, Abdur Rauf.