South Africa kept the six-game rubber alive as they beat India in the fourth ODI by five wickets via the D/L method at Johannesburg on Saturday.