I have a rpg program that contains a routine that updates a db2 table.
I have declared a local var in the program
myvar
If <condition>
%nullind(myvar) = *on
it complains that the field is not capable of null.
I use this variable in an SQL update statement
UPDATE TABLE
SET X=:myvar
how can I set X to null?