Hello
I have a data set of patient data with an original and unique ID number per visit. Occasionally the data is corrected so correction files are produced. THese corrections could include visits not previously submitted and the corrections may only be for one data element. What I would like to have happen is that any new abstracts will be added to the original data set from corrections and any data elements from corrections be updated in submissions.
The original file is "sub" and the corrected file is "corr". Sub has 1506 records and corr has 13 but when I used update the subsequent dataset was 1065 so it didn't work as planned. The code I used was:
data import_results;
update work.sub work.corr;
by Unique_Key;
run;
What function should I be using to get this to work as I'd like? Thanks very much.