04-05-2018 06:51 PM
Require help in building the SAS logic.
Below is an example data and using the first 5 columns as inputs, needs to produce last 3 columns.
Thanks for the help in advance.
04-05-2018 08:10 PM
All that mark was asking is to show what you have tried and get help to fix or modify your solution. That's all and it didn't sound rude at all. I have been told that too in the past and more in a rude manner by many but i took that as an affirmative. And yes, many users do get here taking advantage of other's time. Unfortunately that happens all the time.
04-05-2018 10:14 PM
Do you only have a single record per day?
If so, PROC EXPAND with a CONVERT statement will do what you want. You may need to add a record for every day, but you can do that easily with PROC TIMESERIES.
If you need further help, please provide the code you've attempted thus far and your data, preferably as a data step.
This is a commonly asked question, so if you don't have SAS/ETS search for moving statistics via an array or DoW loop and you'll find many answers.