Hi

I want to browse or tabulate those patients who fullfill two criteriea from an variable in my dataset.

ID attendance
1 1
1 1
1 2
2 3
2 3
2 3
3 1
3 1
3 2

How can I write an syntax that can find those with both 1 & 2 in my attendance variable?

ID var is string and attendance is num

Thank u..

Kind regards Frank