Stock Market Today: Stocks Rise With Inflation Data on Deck

The main benchmarks eked out modest gains to end the week as investors look ahead to next week's August CPI report.