Stocks mostly up before key US inflation data