The stock market eked out a record high Wednesday, as investors weighed positive earnings from the technology industry against disappointing news from Boeing and other companies.
Apple reported earnings that topped analysts' estimates, helped by rising shipments of iPhones. Microsoft also reported results that beat forecasts.
The Dow Jones industrial average lost 26.91 points, or 0.2 percent, to close at 17,086.63.
The Standard & Poor's 500 index rose 3.48 points, or 0.2 percent, to 1,987.01.
The Nasdaq composite rose 17.68 points, or 0.4 percent, to 4,473.70
For the week:
The Dow is down 13.55 points, or 0.1 percent.
The S&P 500 is up 8.79 points, or 0.4 percent.
The Nasdaq is up 41.55 points, or 0.9 percent.
For the year:
The Dow is up 509.97 points, or 3.1 percent.
The S&P 500 index is up 138.65 points, or 7.5 percent.
The Nasdaq is up 297.11 points, or 7.1 percent.