Dollar General and Dollar Tree both recorded comparable-store sales increases of more than 3% during their latest quarters.