The US stock market advanced for a fourth straight day, pushing the Standard & Poor's 500 index to a record high.
Investors were encouraged by news that the number of people seeking unemployment benefits remains at a multi-year low.
Hewlett-Packard rose after delivering better results, while Sears plunged after reporting that its loss doubled from a year ago.
The S&P 500 rose 5.86 points, or 0.3%, to 1,992.37, four points above the record close the index set on July 24.
The Dow Jones industrial average rose 60.36 points, or 0.4%, to 17,039.49. It was the Dow's first close above 17,000 since July 24. The Nasdaq composite rose 5.62 points, or 0.1%, to 4,532.10.
Hewlett-Packard was the biggest gainer in the S&P 500. The technology giant rose 1.88 dollars, or 5.4%, to 37 dollars after reporting better-than-expected results and its first sales increase in nearly three years.
HP has been undergoing a multi-year restructuring under chief executive Meg Whitman, who has laid off employees and cut back businesses that aren't profitable.
Bank of America was also among the market's biggest advancers. The company reached a 16.65 billion dollar settlement with the justice department over its sale of mortgage-backed securities in the months leading up to the financial crisis.
The settlement is by far the largest deal the justice department has reached with a bank over the 2008 mortgage meltdown. BofA rose 64 cents, or 4%, to 16.16 dollars.
Stocks opened higher and remained there throughout yesterday, although buying did pick up in the last hour of trading.
Investors were encouraged by a report from the department of labour that claims for unemployment benefits, a proxy for the number of people who recently lost their jobs and are looking for work, fell by 14,000 last week to 298,000.
The less-volatile four-week average was 300,750, below the average before the Great Recession.
Stocks have been rising steadily all month, due to better economic data and a cooling of tensions in Ukraine, Gaza and Iraq. The S&P 500 is on pace to have its best month since February.
"We've have been able to breathe a sigh of relief that those worst-case scenarios have been avoided, at least for the time being," said Ryan Larson, head of equity trading with RBC Global Asset Management.
Investors now turn to today, when Fed chairwoman Janet Yellen will give a speech at the Fed's annual conference of central bankers and other policymakers in Wyoming.
Investors will be watching closely for clues into her thinking on the timing of interest rate increases.
Ms Yellen's speech will come two days after the minutes from the Fed's July meeting showed that a majority of the central bank's policymakers believe the US economy is improving enough for the bank to start raising interest rates sooner than previously thought.
The debate on when the Fed should begin increasing rates, which have been near zero since 2008, has intensified in recent months as the Fed winds down its other economic stimulus.
Overall, it has been a quiet week for the market. Volumes are low as many Wall Street workers try to fit in their holidays. Yesterday was the 10th-slowest trading day of the year and Wednesday was the fifth-slowest.