Hello, I have a SAS dataset and I want to change the value of certain variables in the dataset. I’ve identified records (9-10) that have incorrect values and have their last name, DOB, and the variable called Mass that needs to be corrected. There are two different types of change that need to happen. For instance, The record that belongs to someone whose last name-Mendez and DOB-7/9/14 I want to change the value of Mass from 2 to 1. The record that belongs to someone whose last name-Williams and DOB-2/2/77 I want to keep the variable Mass 2 as it is AND find another record with the same last name and DOB (other values such as first name, weight will be different) and change the value of Mass from 1 to 2. Similiarly, if I find more than one matching record I want SAS to generate the total # of these matching records. For instance, if there are 4 matching records whose last name is Williams and DOB 2/2/77, Mass should be 4. So I plan to do this for each of those 10 records with incorrect values using last name and DOB. Does anyone know how to do this? Thank you!
... View more