Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
proc sql;
create table dset_test as
select keyvar1
,keyvar2
,field1 as test_Field1
,field2 as test_Field2
...
from dest1
order by keyvar1
,keyvar2
;
quit;
data test;
merge dset_test(in=in1)
dset2(in=in2);
by keyvar1 keyvar2;
if in1 and not in2 then flag = "New Record";
else if in2 and not in1 then flag = "Deleted Record";
else do;
if test_field1 ne field1 then flag = "Changed";
else if test_field2 ne field2 then flag = "Changed";
...
end;
run;
proc compare base = /* base dataset to compare against */
compare = /* other dataset */ ;
id /* optional id statement */;
run;