By Victor Reklaitis and Barbara Kollmeyer, MarketWatch

NEW YORK (MarketWatch) -- U.S. stocks advanced Thursday, as the S&P 500 worked for a fourth straight day of gains and set an intraday record.

Reports on manufacturing and existing home sales topped expectations, and Friday's speech from Federal Reserve Chairwoman Janet Yellen remains a market focus.

The S&P 500(SPX) gained 3 points, or 0.2%, to 1990 after hitting an intraday record at 1,991.67. The benchmark index is also on pace for a record close, trading above its July 24 all-time closing high of 1,987.98.

The Dow Jones Industrial Average(DJI) gained 50 points, or 0.3%, to 17,030, moving back above the big round number of 17,000. The Nasdaq Composite(RIXF) bucked the positive trend, slipping by 3 points, or 0.1%, to 4,523.

An August reading for the Philadelphia Fed index, a key manufacturing gauge, came in at 28, besting forecasts for 18 and marking the highest level since March 2011. Meanwhile, sales of existing homes rose 2.4% in July to 5.15 million, above expectations for 5 million and the fastest pace this year.

In other economic news, initial weekly jobless claims fell by 14,000 to 298,000, basically in line with the 300,000 claims expected by economists surveyed by MarketWatch, and the flash Markit manufacturing purchasing managers index jumped to its highest level since April 2010.

With time to mull it over, investors appeared to further shrug off the Fed minutes released Wednesday that showed some officials arguing the groundwork should be laid for raising interest rates sooner than expected. A Thursday report showing a three-month low for Chinese factory data was also brushed aside.

Brenda Kelly, chief market strategist at IG Markets, said the Fed minutes mostly revealed officials had debated whether to raise rates sooner than expected. "It's still unlikely that it's going to be immediate and remains data dependent," she said in emailed comments.

Wall Street closed modestly higher on Wednesday, finishing just 0.07% off its record close hit July 24, though some market watchers are pointing out record closes are a commonplace occurrence. (Read more: Why a new all-time high doesn't mean a crash is due http://blogs.marketwatch.com/thetell/2014/08/21/no-new-all-time-highs-dont-mean-the-market-is-due-for-a-crash/.)

High hopes for Jackson Hole: Kelly and other strategists said not much will hold markets' attention ahead of Friday's speech from Fed chief Yellen at Jackson Hole, Wyo. European Central Bank President Mario Draghi will speak the same day.

"Markets are making hay while the sun shines -- possibly in a delusional manner based on previous equity moves in the runup and aftermath of the Jackson Hole symposium. Yellen, however, is not Bernanke, and she may offer some surprises," Kelly said.

Other strategists are sounding at least slightly cautious in the short term following the S&P 500's two-week uptrend.

"Despite hints by the FOMC that rate hikes may come sooner than widely anticipated, the S&P 500 appears to be on a mission to eclipse the 2000 level before considering the consequences of an uncontrolled advance," said Sam Stovall, an equity strategist at S&P Capital IQ, in emailed comments.

Individual stocks: Sears Holdings Corp. (SHLD) fell 7% after posting a large loss and margins shrank.

Dollar Tree Inc. (DLTR) was down 1.7% after reporting quarterly results and as Family Dollar Stores Inc. (FDO) reaffirmed its support for Dollar Tree's takeover bid, rejecting a rival offer from Dollar General Corp. (DG). (Read more: Family Dollar rejects Dollar General's takeover bid http://www.marketwatch.com/story/family-dollar-rejects-dollar-generals-takeover-bid-2014-08-21.)

Hewlett-Packard Co. (HPQ) rose 4.2% after the tech pioneer's third-quarter profit fell, but beat forecasts late Wednesday. Retailer Gap Inc. (GPS), which was showing little change, will grab the spotlight after the closing bell. What to look for

Follow the day's notable stock moves here.

Other markets: The Stoxx Europe 600 index rose as investors pushed aside a mixed bag of purchasing managers indexes and looked to recent market weakness as a buying opportunity. The China data wasn't overlooked in Hong Kong, where the Hang Seng index snapped a four-session winning streak. Elsewhere, gold(GCZ4) was down, continuing to lose ground after the Fed minutes.

Subscribe to WSJ: http://online.wsj.com?mod=djnwires

Sears (CE) (USOTC:SHLDQ)
Historical Stock Chart
From Feb 2024 to Mar 2024 Click Here for more Sears (CE) Charts.
Sears (CE) (USOTC:SHLDQ)
Historical Stock Chart
From Mar 2023 to Mar 2024 Click Here for more Sears (CE) Charts.