Discount retailer Dollar General Corp. reported Thursday a profit for the second quarter that increased from last year, reflecting improved margins and higher sales at established stores amid increased customer traffic and average transaction value. Earnings per share topped analysts’ expectations, while quarterly sales missed their estimates by a whisker. The firm also reaffirmed 2015 outlook.