Dollar General has booked an increase in sales and earnings for the fiscal year to the en of January.