Shares rise, dollar flat ahead of U.S. inflation data