Thank you very much for your help. I am looking for other solutions, though.
Using IN is less efficient than variables, because it requires much parsing and does not allow certain optimizations of Oracle.
When the number of items in IN exceeds the maximum, a UNION can be used to add more...