A parameter is a single value, not a list of values.
You need a dynamic SQL string:
SET QUERY = 'SELECT * FROM SOME_TABLE WHERE country_cd IN ('|| varlist || ');';
PREPARE S1 FROM QUERY;
OPEN C1 ;Dieter
↧