sas: adds time period based on filename and logic dependent on it