Good afternoon.
Joining me on our call today are Michael Balmuth, Executive Chairman; Michael O'Sullivan, President and Chief Operating Officer; Gary Cribb, Executive Vice President, Stores and Loss Prevention; John Call, Executive Vice President, Finance and Legal; Michael Hartshorn, Group Senior Vice President and Chief Financial Officer; and Connie Kao, Vice President, Investor Relations.
We will begin our call today with a review of our second quarter and year-to-date performance, followed by our outlook for the remainder of the year. Afterwards, we'll be happy to respond to any questions you may have.
As noted in today's press release, we are pleased with the better-than-expected growth we delivered in both sales and earnings in the second quarter, especially given our challenging multiyear comparison and today's volatile retail climate. Earnings per share for the period were $0.82, up 15% on top of a 13% increase last year. Net earnings for the second quarter grew to $317 million compared to $282 million for the same period last year. Sales rose 8% to $3,432,000,000 with comparable store sales up 4% on top of a 4% gain in the prior year. Operating margin of 14.9% for the quarter outperformed our projections mainly due to a combination of higher merchandise margin and leverage on our above-plan sales.
For the first 6 months of fiscal 2017, earnings per share were $1.64, up 14% on top of a 9% increase in the prior year. Net earnings were $638 million, up from $573 million in last year's first half. Sales year-to-date rose 7% to $6,738,000,000 with comparable store sales up 4% versus a 3% gain in the same period last year.
Sales trends during the quarter were broad-based across all major geographic regions and merchandise category. The Midwest and Southeast were the strongest regions while shoes was the best performing merchandise category at Ross. dd's DISCOUNTS also posted strong better-than-expected gains in both sales and operating profits for the quarter.
As we ended the second quarter, total consolidated inventories were up 3% compared to the prior year, with average in-store inventories up slightly. Packaway as a percent of total inventories was 46% compared to 47% at this time last year.
Turning to expansion programs. We opened 21 new Ross and 7 dd's DISCOUNTS locations in the second quarter. For the 2017 fiscal year, we continue to plan for a total of about 70 new Ross and 20 dd's DISCOUNTS locations. As usual, these numbers do not reflect our plans to close or relocate a handful of stores.
Now, Michael Hartshorn will provide further color on our second quarter results and details on our second half guidance.