When you use a inline declaration ( DATA(exists) ), you have to escape the program variables with '@':
SELECT SINGLE 'X'
INTO @DATA(exists) FROM dbtab
WHERE ....
Don't forget if you have some variables (that were declared in your program) in the condition clause WHERE, you have to escape them too.