Hi, I am trying to build a process that takes a daily file and compares it to the data already stored in a dataset. I want to create a dataset out of the file and compare it to the main dataset to see if there were any observations that had data changed in any variable. For example, I have a dataset 3 observations in it. The variables are ID, Name, Date1, Date2, Amount. 1 Red 5/1/2017, 5/30/2017, $400.00 2 Blue 6/1/2017, 6/30/2017, $500.00 3 Blue 6/1/2017, 7/31/2017, $350.00 I get a file that has 1 observation with 2 data fields that are different from my original dataset. 2 Blue 6/1/2017, 7/31/2017, $600.00 I need to be able to do the following: 1. Update the old (primary) dataset with the new data in the updated file. 2. Add new records if they are in the new file but not the old (primary) dataset. 3. Generate a dataset or report that gives the observation, which variables were updated, and what the updates were. I have found this article and it makes pretty good sense. However, I want to make sure there isn't something built in for this that would make it a little easier. Using PROC COMPARE to identify new and updated ... - PharmaSUG If there is a better way, please let me know.
... View more