selecting data for reports and files