Stocks rise, dollar dips ahead of US inflation data