By Caroline Valetkevitch
(Reuters) - U.S. stocks were flat late Tuesday afternoon as declines in Home Depot and other retailers following results offset upbeat U.S. retail sales data.
Home Depot <HD.N> was down 3.1 percent and was the biggest drag for both the S&P 500 and Dow. Although the home improvement chain reported strong earnings and raised its forecast, investors appeared to be worried about supply constraints in the housing market that could be a drag on Home Depot's future earnings.
Shares of smaller rival Lowe's Cos <LOW.N> were down more than 3 percent.
- PHOTOS: New art and old relics at Mickey Mouse's NYC gallery 25 Pictures
- PHOTOS: See Yes on 3 supporters react to historic transgender rights Question 3 win 11 Pictures
- PHOTOS: A look back at Queen performing in the 1970s and 1980s 22 Pictures
- All of these celebrities have had their nudes leaked 35 Pictures
- PHOTOS: A look at Idris Elba's style through the years 20 Pictures
- PHOTOS: Heidi Klum's annual Halloween party and other amazing celebrity costumes 17 Pictures
- These are the spookiest cities per capita in the U.S. 5 Pictures
- Food Network star talks pumpkin carving 1 Pictures
- Who is Alexander Edwards, Amber Rose's new boyfriend? 9 Pictures
- Is Cardi B pregnant again? This tweet has people guessing 6 Pictures
- Natural Museum's best wildlife photos of the year 5 Pictures
The consumer discretionary index <.SPLRCD>, down 0.8 percent, also took a hit from a steep fall in the shares of Coach <COH.N> and Advance Auto Parts <AAP.N> after the companies reported disappointing results.
However, data showed that U.S. retail sales recorded their biggest increase in seven months in July as consumers boosted purchases of motor vehicles as well as discretionary spending.
The data helped the dollar touch its highest level against a basket of major currencies <.DXY> in nearly three weeks.
"The retail sales numbers that came out today - that's nothing but good news. We have a positive surprise for this month and upward revisions," said Brad McMillan, chief investment officer for Commonwealth Financial in Waltham, Massachusetts.
"People are spending but they're not spending on the same things. From a company level perspective, there are winners and losers."
The Dow Jones Industrial Average <.DJI> was up 12.63 points, or 0.06 percent, to 22,006.34, the S&P 500 <.SPX> had gained 0.35 points, or 0.01 percent, to 2,466.19 and the Nasdaq Composite <.IXIC> had dropped 3.37 points, or 0.05 percent, to 6,336.86.
The markets have rebounded in the last two sessions after a standoff between the United States and North Korea showed signs of easing.
North Korean leader Kim Jong Un has delayed a decision on firing missiles toward Guam while he waits to see what the United States does, the North's state media reported.
Declining issues outnumbered advancing ones on the NYSE by a 1.78-to-1 ratio; on Nasdaq, a 1.88-to-1 ratio favored decliners.
The S&P 500 posted 49 new 52-week highs and 10 new lows; the Nasdaq Composite recorded 98 new highs and 85 new lows.
(Additional reporting by Sruthi Shankar in Bengaluru; Editing by Anil D'Silva and Nick Zieminski)