NOTE: PROCEDURE PRINTTO used (Total process time): real time 0.01 seconds cpu time 0.01 seconds 1924 options mlogic SYMBOLGEN MPRINT; 1925 /* check 02: macro count outliers */ 1926 %macro macro_outliers (var=); 1927 proc sql; create table upper_bound as select Variable_max from DC.input_analysis_res where 1927! variable_name="&VAR" ;quit; 1928 proc sql; create table lower_bound as select Variable_min from DC.input_analysis_res where 1928! variable_name="&VAR" ;quit; 1929 proc sql; create table base as select distinct "&VAR" from in.test ;quit; 1930 proc sql; create table base as select a.*, b.*, c.* from base a, upper_bound b, 1930! lower_bound c ;quit; 1931 proc sql; create table num_ourliers as select 1932 case when &VAR>Variable_max then 1 else 0 end as n_over, 1933 case when &VARVariable_max then 1 else 0 end as n_over, case when ALTERNATIVEBEGINVariable_max then 1 else 0 end as n_over, case when SegmentVariable_max then 1 else 0 end as n_over, case when SegmentVariable_max then 1 else 0 end as n_over, case when VPS_AUFENTHALTSLANDVariable_max then 1 else 0 end as n_over, case when VPS_AUFENTHALTSLANDVariable_max then 1 else 0 end as n_over, case when VPS_CCNTRYVariable_max then 1 else 0 end as n_over, case when _beginVariable_max then 1 else 0 end as n_over, case when _endVariable_max then 1 else 0 end as n_over, case when _reportVariable_max then 1 else 0 end as n_over, case when startVariable_max then 1 else 0 end as n_over, case when stopVariable_max then 1 else 0 end as n_over, case when ALTERNATIVEBEGINVariable_max then 1 8 + else 0 end as n_over, case when SegmentVariable_max then 1 12 + else 0 end as n_over, case when SegmentVariable_max then 1 else 0 end as n_over, case when VPS_AUFENTHALTSLANDVariable_max then 1 else 0 end as n_over, case when VPS_AUFENTHALTSLANDVariable_max then 1 else 0 end as n_over, case when VPS_CCNTRYVariable_max then 1 else 31 + 0 end as n_over, case when _beginVariable_max then 1 else 0 end as 35 + n_over, case when _endVariable_max then 1 39 + else 0 end as n_over, case when _reportVariable_max then 1 else 0 43 + end as n_over, case when startVariable_max then 1 else 0 end as 47 + n_over, case when stop