The Dow Jones Industrial Average opened at a record high, with U.S. stocks starting August in positive territory.