When you're on TD14 you might simply use the strtok_split_to_table function:
WHERE P_ID IN
(
SELECT CAST(token as INT)
FROM TABLE (STRTOK_SPLIT_TO_TABLE(1, #sq(prompt(''))#, ',')
RETURNS (outkey INTEGER,
tokennum INTEGER,
token VARCHAR(20) CHARACTER SET UNICODE)
) AS d
)
Dieter
When you're on TD14 you might simply use the strtok_split_to_table function:
Dieter