COLOMBO (AFP) - Pakistan remained on course to win the third and final cricket Test against Sri Lanka after denting the home team's chase of a world record target on Thursday. Sri Lanka, set an improbable 492 to sweep the series 3-0 after they had won the first two Tests, were 183-3 in their second knock at stumps on the fourth day at the Sinhalese sports club. When play begins on the fifth day for the first time in the series -- the first Test ended in four days and the second in three -- Pakistan will need seven wickets and Sri Lanka a further 309 runs in 90 overs. No team has scored 492 runs in the fourth innings to win a Test match. The highest successful chase so far is 418-7 by the West Indies against Australia in Antigua in 2003. Sri Lanka were given a minimum of 150 overs to get the runs after Pakistan declared their second innings at 425-9 soon after lunch with former captain Shoaib Malik making 134. Sri Lankan openers Malinda Warnapura and Tharanga Paranavitana put on 83 for the first wicket in 25 overs, their best partnership of the series, to raise visions of a history-defying feat. But the fall of three wickets in the final session set Sri Lanka back even as skipper Kumar Sangakkara returned unbeaten on 50, having surpassed the 7,000-run mark in his 83rd Test on the way. Thilan Samaraweera was the other batsman at the crease on 20. Warnapura, who made 31, was unfortunate to be given out caught by English umpire Ian Gould as television replays showed the ball from Danish Kaneria go off the pad to the short-leg fielder. Paranavitana went on to make a fluent 73 before tapping an easy catch to Fawad Alam at forward short-leg off Malik to make Sri Lanka 139-2. Kaneria picked up his second wicket soon after when Mahela Jayawardene, who plodded for 29 minutes to make two, poked at a wide ball and edged a catch to wicket-keeper Kamran Akmal. Earlier, Pakistan added 19 runs to their overnight score of 300-5 when Akmal fell in the day's fourth over after making 74 during a sixth-wicket stand of 133 with Malik. Tailender Umar Gul showed there were no hidden demons in the pitch as he helped Malik add 52 for the seventh wicket, himself contributing 22 in the partnership. Malik was dismissed after a six-hour vigil at the crease when he holed out in the deep off spinner Rangana Hearth. The right-hander hit 13 fours and two sixes to shore up Pakistan's innings after they had collapsed to 67-4 before lunch on the third day. Gul helped himself to his highest Test score of 46 from 50 balls before he was caught at deep square-leg attempting a fourth six off Herath. Left-arm spinner Herath returned with 5-157 from 46 overs, his second five-wicket haul in as many matches. Pakistan's declaration marked the last stint at the bowling crease for veteran Sri Lankan seamer Chaminda Vaas, who retires from Test cricket after the match with 355 wickets from 111 Tests. The 35-year-old, who was overlooked for the first two Tests, claimed just one wicket in 39 overs in his final match. SCOREBOARD PAKISTAN 1st innings: 299 (Khurram Manzoor 93, Mohammad Yousuf 90, Shoaib Malik 45, T. Thushara 5-83, N. Kulasekera 3-47) SRI LANKA 1st innings: 233 (K. Sangakkara 45, M. Jayawardene 79, T. Dilshan 44, D. Kaneria 5-62, S. Ajmal 3-70) PAKISTAN 2nd innings (overnight 300-5): Khurram Manzoor b Herath 2 Fawad Alam c and b Thushara 16 Younus Khan lbw b Kulasekera 19 Mohammad Yousuf c Sangakkara b Herath 23 Misbah-ul Haq c Sangakkara b Mathews 65 Shoaib Malik c sub (Lakmal) b Herath 134 Kamran Akmal c Jayawardene b Kulasekera 74 Umar Gul c Vaas b Herath 46 Danish Kaneria c Thushara b Herath 5 Mohammad Aamer not out 22 Saeed Ajmal not out 3 EXTRAS: (b10, lb2, nb2, w2) 16 TOTAL (for 9 wkts decl, 123 overs) 425 Fall of wickets: 1-16 (Manzoor), 2-22 (Alam), 3-54 (Younus), 4-67 (Yousuf), 5-186 (Misbah), 6-319 (Akmal), 7-371 (Malik), 8-399 (Gul), 9-405 (Kaneria). BOWLING: Kulasekera 20-5-55-2 (w1) Thushara 28-2-121-1 (nb2, w1) Herath 46-6-157-5 Vaas 19-6-47-0 Mathews 10-1-33-1 SRI LANKA 2nd innings: T. Paranavitana c Alam b Malik 73 M. Warnapura c Malik b Kaneria 31 K. Sangakkara not out 50 M. Jayawardene c Akmal b Kaneria 2 T. Samaraweera not out 20 EXTRAS: (lb5, nb2) 7 TOTAL (for 3 wkts, 59 overs) 183 To bat: Tillakaratne Dilshan, Angelo Mathews, Rangana Herath, Chaminda Vaas, Thilan Thushara, Nuwan Kulasekera. Fall of wickets: 1-83 (Warnapura), 2-139 (Paranavitana), 3-155 (Jayawardene). BOWLING: Gul 6-0-27-0 (nb1) Aamer 9-0-20-0 Younus 3-0-16-0 Ajmal 16-1-36-0 Malik 9-1-23-1 (nb1) Kaneria 16-1-56-2. Sri Lanka need 309 runs more to win with seven wickets in hand. Toss: Sri Lanka Umpires: Simon Taufel (AUS) and Ian Gould (ENG) TV umpire: Gamini Silva (SRI) Match referee: Alan Hurst (AUS).