DALLAS — J.C. Penney, in reporting its second-quarter financial results Friday, said it had narrowed its loss and posted a 2.2 percent increase in same-store sales. Revenue, however, fell slightly short of expectations.

Customer traffic, though, was up in July, and the company is confident it can continue to grow sales, CEO Marvin Ellison said in a conference call with analysts.

In addition to sales events that drove traffic in July, Penney this summer has been opening kitchen and laundry appliance departments in its stores and testing partnerships with Ashley Furniture and flooring company Empire Today. About 200 stores now have the appliance departments. About 500 stores will have them before the end of the year.

There are six J.C. Penney stores in Maine, in Auburn, South Portland, Waterville, Rockland, Bangor and Presque Isle.

So far, appliance sales in stores and online are exceeding expectations, the retailer said. Stores with appliances are also getting expanded window treatment departments. Ellison wants Penney to regain market share in windows, a category it once dominated.

The national retailer also announced it has a contract to sell its 2 million-square-foot corporate campus outside Dallas but provided no further details on the deal.

“We’re in due diligence phase and expect to complete it at the end of this quarter,” chief financial officer Ed Record said of the possible sale.

The company plans to use proceeds from selling its headquarters to pay down debt.

STORE CLOSINGS

Analysts also asked about the prospect of store closings. Penney continues to scrutinize stores and it will close stores “when they become insignificant locations,” Ellison said. Penney closed seven stores this year and 41 in 2015.

But Ellison didn’t indicate that a massive store closing, similar to Macy’s announcement Thursday that it will close 100 stores, is in the works.

Ellison said more than 50 percent of Penney’s online sales are driven – through interactions like in-store ordering and free customer returns – by physical stores. And, he said, that figure doesn’t account for the retailer’s recent rollout of an option for buying online and picking up the same day.

So far, Penney has benefited when other mall anchor stores close, and that’s one reason the retailer got into the major appliance business, he said.

“We saw that market share was up for grabs,” he said.

Penney is in 400 malls that also have a Sears. When a Sears closes, he said, Penney’s sales increase. Penney sales also rise when a Macy’s exits a mall, Ellison said.

Penney is spending a lot of time talking with mall operators about redeveloping properties, Ellison said.

SECOND QUARTER RESULTS

Penney posted a net loss of $56 million, or 18 cents a share, compared with a loss of $117 million, or 38 cents a share, in the same period last year.

Without a one-time, previously announced charge of $34 million for refinancing debt, Penney’s adjusted loss was 5 cents a share. Analysts surveyed by Thomson Reuters forecast an adjusted loss of 15 cents a share. In June, Penney refinanced its $2.25 billion five-year term loan, cutting its annual interest expense by $24 million.

But a stock price drop seen Friday morning was more likely the result of Penney missing analysts’ forecast for a sales increase of 1.8 percent to $2.93 billion.

Penney’s total sales, missing that mark, increased 1.5 percent to $2.92 billion. Its stock price recovered after the conference call and were trading above $10 a share around midday.

Overall, Penney’s numbers came in better-than-expected with lower expenses, retail analyst Dana Telsey said Friday morning on CNBC. She said more details from the conference call should boost investor sentiment. She forecast Penney stock should be at $12 a share by Christmas.

Penney’s stock price participated in a department store rally on Thursday. It gained 79 cents, up 8.6 percent, to close at $9.94 a share on Thursday.

OUTLOOK

Friday morning, Penney reiterated its financial goals and estimate for sales to increase 3 percent to 4 percent this year. Its sales performance has been beating competitors.

Retailers’ results were mixed: Macy’s reported a 2.6 percent decline in same-store sales, its sixth consecutive quarterly decline. Kohl’s reported a 1.8 percent decline in same-store sales, which was better than the first quarter but below expectations, said Kohl’s CEO Kevin Mansell.

Nordstrom beat its earnings forecast and raised its profit forecast for the year. Its same-store sales fell 1.2 percent. Nordstrom breaks down its sales with 2.3 percent same-store sales decline at its full-price department stores and a 5.3 percent gain at its Nordstrom Rack stores.