Nasdaq, Dow Jones edge larger after shaking off inflation fears