DUBAI (AFP) South Africa held the upper hand in the first Test against Pakistan after paceman Morne Morkel grabbed five wickets and off-spinner Johan Botha took three on the third day at the Dubai Stadium on Sunday. South Africa reached 139-2 at stumps to increase their overall lead to 271 with eight wickets in hand and a deteriorating pitch which is likely to take spin and have low bounce as the game progresses. Hashim Amla, with 44, and Jacques Kallis, on 32, were unbeaten at stumps after Morkel (5-54) and Botha (3-61) helped South Africa wrap up Pakistans first innings on 248, gaining an overall lead of 132. Kallis and Amla strengthened South Africas position during their unfinished 63-run stand for the third wicket to pile pressure on their rivals. South Africa got off to another confident start of 47 before Graeme Smith (34) and Alviro Petersen (26) fell victim to questionable umpiring decisions by Sri Lankan umpire Asoka de Silva. Petersen fell in the last over before tea, adjudged leg-before to left-arm spinner Abdul Rehman, while Smith was given leg-before when he tried to sweep against Saeed Ajmals off-spin, but television replays showed the ball missing the off-stump. Smith, who made 100 in the first innings, also became the second highest scorer for South Africa in all Test cricket, when on 20 he overhauled former opener Gary Kirtens tally of 7289 (101 Tests). Smith, playing his 87th Test, is behind Kallis who has scored 11199 in 141 Tests before his second knock in this match. In the morning session South Africa staged a remarkable fightback. Morkel, who registered his third five-wicket haul in his 27th Test, built on Bothas three wickets in the first session, removing Azhar Ali (56), Rehman (one), Wahab Riaz (five) and Saeed Ajmal (two) with the second new ball. Ali fought a lone battle, hitting five boundaries during his defiant 172-ball knock. Morkel said the thinking was to bowl right areas. We set high standards as a bowling unit and knew that if we hit the right areas, we will be rewarded with wickets, and thats what happened with me and Botha, said Morkel. Botha had dismissed Younus Khan (35), skipper Misbah-ul-Haq (nine) and Umar Akmal (four) in 38 balls to derail Pakistan who resumed the day at 144-2. South Africa piled on the pressure with five close-in fielders to keep the batsmen in check and the tactic paid off as Botha induced Younis to drive uppishly towards short mid-wicket, where AB de Villiers pulled off a diving catch. Younis, playing his first Test since July last year because of a disciplinary ban, hit three boundaries. Misbah, leading Pakistan for the first time, also fell victim to close-in fielding when a Botha delivery turned sharply and the ensuing edge was picked off by a diving Amla at short-leg. Umar played a reckless shot trying to loft Botha over long-off but got a leading edge towards point where Steyn took a simple catch before Morkel destroyed the tail-end. The second Test starts in Abu Dhabi on November 20. Scoreboard : SOUTH AFRICA, first innings 380 (G Smith 100, Hashim Amla 80, J Kallis 73, A Petersen 67; Gul 3-100, Rehman 3-101) PAKISTAN, first innings Mohammad Hafeez c Smith b Harris 60 Taufiq Umer lbw b Morkel 42 Azhar Ali c Amla b Morkel 56 Younus Khan c de Villiers b Botha 35 Misbah-ul-Haq c Amla b Botha 9 Umar Akmal c Steyn b Botha 4 Adnan Akmal c Boucher b Steyn 10 Abdul Rehman c de Villiers b Morkel 1 Umar Gul not out 12 Wahab Riaz c Boucher b Morkel 5 Saeed Ajmal c Boucher b Morkel 2 EXTRAS: (lb12) 12 TOTAL: (95overs) 248 Fall of wickets: 1-105, 2-111, 3-176, 4-196, 5-202, 6-220, 7-225, 8-228, 9-246 BOWLING Steyn 18-3-58-1 Morkel 21-7-54-5 Harris 25-7-47-1 Kallis 8-3-16-0 Botha 23-6-61-3 SOUTH AFRICA, second innings A Petersen lbw b Rehman 26 G Smith lbw b Ajmal 34 Hashim Amla not out 44 J Kallis not out 32 EXTRAS: (b1, lb1, nb1) 3 TOTAL: (for two wkts, 48overs) 139 Fall of wickets: 1-47 (Petersen), 2-76 (Smith) BOWLING Gul 8-0-34-0 Younus 3-0-15-0 (1nb) Rehman 15-4-37-1 Hafeez 11-3-20-0 Ajmal 11-1-31-1