Hi guys,
How can I select rows in a data set based on values stored in another data set?
Eg:
DATA PEOPLE contains:
row id name
1 100 marcos
2 101 maria
DATA TRANSACTIONS contains:
row id id_people value
1 10 100 39$
2 11 100 33$
3 12 101 300$
4 13 102 400$
5 14 100 8$
6 15 102 98$
I want to select all rows in TRANSACTIONS that have id_people listed on PEOPLE (In this case, rows 1, 2, 3 and 5). How can I do that the best way possible in SAS?