08-29-2016 04:39 PM - edited 08-29-2016 04:47 PM
I have a data set with some student ids and the dates they were in attendance along with the number of classes they had taken on that particular day of attendance. Another data set with all the calendar days are also available. I want to flag those students that have taken more than 6 classes over a rolling 7 calendar day period. The goal is to identify the dates that the student exceeded that threshold, in other words the same student could have met that threshold on multiple dates. Any idea how I would be able to do that?
Any help is much appreciated.
08-29-2016 04:48 PM
It would help to provide some example data and what you would like to see for a final output. You can follow instructions from this link https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... to create datastep code as text to post to the forum to create example data sets we can test code with.
It will help if your dates as SAS date values.
08-29-2016 07:37 PM
08-30-2016 04:27 AM
To get an answer to your question please post:
Example test data, in the form of a datastep - copied and pasted into the text box here so we can run it to get test data. You can extract this form your data by following the post at:
The post an example - directly into the text box here - of what the output should look like. Most people will not download random Excel files from the web.
Finally provide any additional information on what the process is about.