Stocks rise as traders make last moves before inflation data