South Africa hung onto to its credit rating and outlook from Standard & Poor’s. The rating agency decided to retain the country’s foreign and local-currency sovereign credit rating at BB and BB+.