dhakala
24th October 2002, 21:29
I am trying to write an Informix procedure to insert fields from the tdilc101 table into a custom table using certain criteria. I only want to select records where the warehouse is 'nettable'. The variable nr_cwar is ttilc101.t_cwar.
if (select t_nwrh from ttcmcs003310
where t_cwar=nr_cwar)<>1
then
let type='non-nettable';
else
let type='nettable';
end if;
I have both nettable and non-nettable warehouses defined in the tcmcs003 table, but no matter what value I pass in a nr_cwar the type always comes out as 'nettable'
TIA for any guidance!
Duane
if (select t_nwrh from ttcmcs003310
where t_cwar=nr_cwar)<>1
then
let type='non-nettable';
else
let type='nettable';
end if;
I have both nettable and non-nettable warehouses defined in the tcmcs003 table, but no matter what value I pass in a nr_cwar the type always comes out as 'nettable'
TIA for any guidance!
Duane