I'm writing DB2 stored procedure. This stored procedure will be called using .ksh script.
I was stuck in checking IF condition. I have a variable "CHECK" which will have number of values as below...
CHECK = 'test1,test3,test8,......testn' ---- variable datatype is varchar
here test1 is one value, test3 is one value, etc. need to check each value in IF condition as below
IF CHECK= 'test1'
THEN
--PRINT TEST1 HERE;
END IF;
IF CHECK = 'test8'
THEN
--PRINT TEST8 HERE;
END IF;
could you please help me to achieve this?