Dunedin: New Zealand managed by small degrees to take a five-run lead over South Africa with one wicket standing on the second day of the first cricket Test here Thursday.
Though 19 wickets had fallen in five sessions, the match defied the strenuous efforts of both sides to gain control.
South Africa was dismissed for 238 after resuming at 191-7 in an innings helped by half centuries to Hashim Amla (62), Graeme Smith (53) and Jacques Rudolph (52).
No New Zealand batsman managed to reach 50 but contributions of 48 from Brendon McCullum, 46 from Daniel Vettori, 44 from Ross Taylor and 36 from Kruger van Vyk allowed the hosts to edge to 243-9.
New Zealand's last-wicket pair of Trent Boult (8) and Chris Martin (0) survived to stumps, but offer the hosts little hope of building a substantial lead.
For South Africa, Vernon Philander's remarkable Test career continued as he took 4-50 to increase his tally to 34 wickets in only his fifth Test.
After a frigid first day, trimmed by rain to 58 overs, Thursday's conditions were benign but, despite sunshine and a docile pitch, neither side managed to flourish.
There have been only two passages of play in the match when one side has been truly dominant: the latter part of the first session yesterday when Smith made his half century and steered South Africa to 86-1; and its immediate sequel, when Martin dismissed Smith, Jacques Kallis and A B de Villiers within four deliveries to terminally damage the South African innings.
Otherwise, the match has developed into an absorbing conTest of attrition in which the initiative has regularly passed from one side to the other.
Martin took 4-56 to prevent South Africa's batsmen from establishing themselves and building a formidable first innings. Philander performed the same function as South Africa's most effective strike bowler.
New Zealand then managed to grab a first-innings lead with eight wickets down and in the second-to-last over of the day when Doug Bracewell (25) hit Dale Steyn for four.
In an incident illustrative of the nature of the day, Steyn skittled Bracewell's middle stump two balls later.
The day ended in virtual stalemate and with three days and two innings remaining the teams start almost from scratch Friday.
Leg-spinner Tahir provided a glimpse of his potential when he took 1-55 from 24 overs during New Zealand's innings.
Mornel Morkel, the most successful South African bowler after Philander, took 2-52.
South Africa added 47 runs for its last three wickets at the start of the second day, more than New Zealand was comfortable to allow. Rudolph progressed from 46 overnight to 52 but in keeping with the trend of the match couldn't go beyond that score. Philander made 22, Morkel 13 and Tahir 10.
New Zealand lost debuting opener Rob Nicol to Philander in the fourth over with the total at 7 but McCullum and Guptill steered it to lunch at 40-1.
Guptill (16) was bowled by Morkel in the over following the resumption and there followed one of the day's pivotal periods when McCullum and New Zealand's returning captain Ross Taylor put on 65 for the third wicket.
Both fell just when they seemed to be established and about to go on to play a dominant role. McCullum was caught and bowled by Tahir and Taylor was out for 44, flashing at a wide delivery from Morkel.
Vettori played a typically hardy rearguard role and made 46 in a partnership of 53 with South African-born van Vyk.
The diminutive van Vyk took New Zealand within nine runs of South Africa's total when he was caught by Smith at first slip off Philander. Tim Southee fell two balls later.
Bracewell and later Boult carried them over the line.