data bweight_old ( keep = patient_id weight--momage );
format patient_id;
set sashelp.bweight;
if _N_ <= 6;
if _N_ in ( 1, 2 ) then patient_id = "A1";
if _N_ in ( 3, 4 ) then patient_id = "A2";
if _N_ in ( 5, 6 ) then patient_id = "A3";
run;
data bweight_new;
set bweight_old;
if _N_ = 2 then weight = .;
if _N_ = 3 then momage = .;
run;
proc compare base = bweight_old compare = bweight_new;
ods select CompareDifferences;
run;
In the proc compare output, is there a way for me to see which PATIENT_ID an observation corresponds to?