ola
eu passei por isso
fiz assim:
ALTER PROCEDURE xxxx
DATAINICIAL Date,
DATAFINAL Date,
MARCA Varchar(1024) )
ai pra executar fiz isso
wComando = 'select ....... ||
and
'marca.numeromarca in (' || marca || ')' ;
execute STATEMENT :wcomando
into :totalgeral;
ta funcionando