South African rand gains before US CPI and local data