US discount retailer Dollar General has raised its full-year earnings outlook after booking a 47% jump in second-quarter net profit.