your question is very broad and is very domain related question, I fear it will be very difficult to answer for anyone to answer. If you want to know more about EPOCH and SAS then please use this link
https://lexjansen.com/search/searchresults.php?q=epoch
If you want any specific answer for your data, please give a sample input data and output data, so that someone will able to help you. This way you will get your solution much quicker way