South African batters, led by their gutsy skipper Dean Elgar, dug their heels in to reach within 122 runs of a series-levelling victory against a determined India as the second Test seemed poised for a gripping fourth day finish in Johannesburg on Wednesday.