I have an issue i am stuck on trying to sort out…i basically have a table that looks a little something like this..
ID user operation date
1 Jon In 01/01/2013
1 Paul Out 02/01/2013
1 Paul In 03/01/2013
2 Jon Deleted 04/01/2013
2 Paul In 05/01/2013
2 Jon Out 06/01/2013
1 Jon out 07/01/2013
1 Jon Deleted 08/01/2013
2 Jon out 09/01/2013
1 Jon in 11/01/2013
So basically i need to find where for the same ID both Jon and Paul are “In”. So in the example about Jon and Paul are both in for ID 1, and for ID 2 i will only find Paul. So the last known date for that row has to be included as the early in, out or deleted is it be ignored as it was later changed. So in short i need to find ID values where an IN existes and that has not been later set to “out” or Thanks in advance!
If you sort the data correctly then using first. in a data step should work (unless you have an id and user with more than 1 entry on the same day, you’d need to determine which one to take if that were the case).