You just have to add a HAVING:
sel( ( sel count (*) from src_tab_1) + sel count (*) from src_tab_2) + sel count (*) as x
from src_tab_3) - sel count (*) from target_tab))
having x <> 0;
.if activitycount = 1 then quit 33;
Dieter
↧
Bteq script required to validate record count of Source and target table. - response (3) by dnoeth
↧