Stocks climb, dollar down before US inflation data