Please help in validating this code. In 9.4 I am not able to get correct value of EXCLUDE in the output. Seems like there is some error around 'and not missing'. data test; set test1; array hra_ (*) &hras.; array d_(&ct.); do i=1 to &ct.; if (((max(of hra_ (*)) = . and min(of hra_(*)) = .) and not missing(HRA_previous_yr)) or ((max(of hra_ (*)) = min(of hra_ (*))) and not missing(HRA_previous_yr) and (HRA_previous_yr) = max((of hra_ (*)))) and intck('day', HRA_previous_yr, disenrollment_date) < 365 then do; EXCLUDE = "XYZ"; END; END; run;
... View more