quit program after entering 'P' to print ddfs