Which tool do you use to submit it?
In BTEQ and (SQL Assistant 13.10+) you can use basic conditional logic:
select count (*) from tableX
having count(*) > 5;
-- no row returned when count(*) <= 5
-- no need to any additional steps
.if activitycount = 1 then .exit;
or
-- just skip some statements and then go on
.if activitycount = 1 then .goto nextStep;
create volatile table T1 as
(
select * from TableA;
) with data
on commit preserve rows;
create volatile table t2 as
(
select * from TableB;
) with data
on commit preserve rows;
.label nextStep;
Which tool do you use to submit it?
In BTEQ and (SQL Assistant 13.10+) you can use basic conditional logic:
Dieter