The consumer price index was expected to show a 0.2% increase in July and a 3% gain over the past year.